You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -98,11 +98,11 @@ module.exports = {
98
98
99
99
Finally run `webpack` via your preferred method.
100
100
101
-
### The `outputStyle` (old API) and `style` (new API) options in `production` mode
101
+
### The `style` (new API, by default since 16 version) and `outputStyle` (old API) options in `production` mode
102
102
103
-
For `production` mode, the `outputStyle` (old API) and `style` (new API) options default to `compressed` unless otherwise specified in `sassOptions`.
103
+
For `production` mode, the `style` (new API, by default since 16 version) and `outputStyle` (old API) options default to `compressed` unless otherwise specified in `sassOptions`.
104
104
105
-
### Resolving `import` at-rules
105
+
### Resolving `import`and `use`at-rules
106
106
107
107
Webpack provides an [advanced mechanism to resolve files](https://webpack.js.org/concepts/module-resolution/).
108
108
@@ -296,13 +296,13 @@ Options for [Dart Sass](http://sass-lang.com/dart-sass) or [Node Sass](https://g
296
296
297
297
> [!NOTE]
298
298
>
299
-
> The `indentedSyntax`option is`true`for the`sass` extension.
299
+
> The `syntax` (new API, by default since 16 version)`and`indentedSyntax`(old API) option is`scss`for the`scss`extension,`indented`for the`sass`extension and`css`for the`css` extension.
300
300
301
301
> [!NOTE]
302
302
>
303
303
> Options such as `data` and `file` are unavailable and will be ignored.
304
304
305
-
> ℹ We strongly discourage changing the `outFile`, `sourceMapContents`, `sourceMapEmbed`, and `sourceMapRoot` options because `sass-loader` sets these automatically when the `sourceMap` option is `true`.
305
+
> ℹ We strongly discourage changing the `sourceMap` (new API, by default since 16 version), `outFile` (old API), `sourceMapContents` (old API), `sourceMapEmbed` (old API), and `sourceMapRoot` (old API) options because `sass-loader` sets these automatically when the `sourceMap` option is `true`.
306
306
307
307
> [!NOTE]
308
308
>
@@ -313,7 +313,9 @@ There is a slight difference between the options for `sass` (`dart-sass`) and `n
313
313
Please consult their respective documentation before using them:
314
314
315
315
-[Dart Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options) for all available `sass` options.
316
+
-[Sass Embedded documentation](https://github.com/sass/embedded-host-node) for all available `sass` options.
316
317
-[Node Sass documentation](https://github.com/sass/node-sass/#options) for all available `node-sass` options.
318
+
-[Sass Embedded documentation](https://github.com/sass/embedded-host-node) for all available `sass` options.
@@ -401,7 +403,7 @@ Enables/Disables generation of source maps.
401
403
By default generation of source maps depends on the [`devtool`](https://webpack.js.org/configuration/devtool/) option.
402
404
All values enable source map generation except `eval` and `false`.
403
405
404
-
> ℹ If `true`, the `sourceMap`, `sourceMapRoot`, `sourceMapEmbed`, `sourceMapContents`and `omitSourceMapUrl` options from `sassOptions` will be ignored.
406
+
> ℹ If `true`, the `sourceMap` (new API, by default since 16 version), `outFile` (old API), `sourceMapContents` (old API), `sourceMapEmbed` (old API), and `sourceMapRoot` (old API) from `sassOptions` will be ignored.
405
407
406
408
**webpack.config.js**
407
409
@@ -683,7 +685,7 @@ Type:
683
685
typeapi="legacy"|"modern"|"modern-compiler";
684
686
```
685
687
686
-
Default: `"modern"` for `sass` (`dart-sass`) and `sass-embedded` or `"legacy"` for `node-sass`
688
+
Default: `"modern"` for `sass` (`dart-sass`) and `sass-embedded`, or `"legacy"` for `node-sass`
687
689
688
690
Allows you to switch between the `legacy` and `modern` APIs. You can find more information [here](https://sass-lang.com/documentation/js-api). The `modern-compiler` option enables the modern API with support for [Shared Resources](https://github.com/sass/sass/blob/main/accepted/shared-resources.d.ts.md).
0 commit comments