Skip to content

Commit 55845ba

Browse files
authored
docs: remove node-sass references (#22240)
Removes a couple of references to `node-sass` which doesn't support `@use`.
1 parent 4d54ff1 commit 55845ba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

guides/theming.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $candy-app-theme: mat-light-theme((
9595
color: (
9696
primary: $candy-app-primary,
9797
accent: $candy-app-accent,
98-
warn: $candy-app-warn,
98+
warn: $candy-app-warn,
9999
),
100100
typography: mat-typography-config(),
101101
density: 0, // Defaults to 0 if omitted, but shown for completeness.
@@ -114,9 +114,9 @@ add a new entry to the `"styles"` list in `angular.json` pointing to the theme
114114
file (e.g., `unicorn-app-theme.scss`).
115115

116116
If you're not using the Angular CLI, you can use any existing Sass tooling to build the file (such
117-
as gulp-sass or grunt-sass). The simplest approach is to use the `node-sass` CLI; you simply run:
117+
as gulp-sass or grunt-sass). The simplest approach is to use the `sass` CLI; you simply run:
118118
```
119-
node-sass src/unicorn-app-theme.scss dist/unicorn-app-theme.css
119+
sass src/unicorn-app-theme.scss dist/unicorn-app-theme.css
120120
```
121121
Then include the output file in your index.html.
122122

tools/package-tools/gulp/build-scss-pipeline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import {buildConfig} from '../build-config';
44

55
// These imports lack of type definitions.
66
const gulpSass = require('gulp-sass');
7-
const nodeSass = require('sass');
7+
const sass = require('sass');
88

99
const sassIncludePaths = [
1010
join(buildConfig.projectDir, 'node_modules/')
1111
];
1212

1313
// Set the compiler to our version of `sass`, rather than the one that `gulp-sass` depends on.
14-
gulpSass.compiler = nodeSass;
14+
gulpSass.compiler = sass;
1515

1616
/** Create a gulp task that builds SCSS files. */
1717
export function buildScssPipeline(sourceDir: string) {

0 commit comments

Comments
 (0)