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: CHANGELOG.md
+43
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,49 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
* use modern Sass JS API by default for `sass` and `sass-embedded`
11
+
12
+
> [!WARNING]
13
+
>
14
+
> The sass options are different for the `legacy` (before) and `modern` APIs. Please look at [docs](https://sass-lang.com/documentation/js-api) how to migrate to the modern options.
> Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/
17
+
18
+
To return to the previous logic use:
19
+
20
+
```js
21
+
module.exports= {
22
+
module: {
23
+
rules: [
24
+
{
25
+
test:/\.s[ac]ss$/i,
26
+
use: [
27
+
"style-loader",
28
+
"css-loader",
29
+
{
30
+
loader:"sass-loader",
31
+
options: {
32
+
api:"legacy",
33
+
// Your options
34
+
},
35
+
},
36
+
],
37
+
},
38
+
],
39
+
},
40
+
};
41
+
```
42
+
43
+
### Features
44
+
45
+
* use modern Sass JS API by default for `sass` and `sass-embedded` ([10be1ba](https://github.com/webpack-contrib/sass-loader/commit/10be1ba161557638fd3b80f4a5467159179ef9b1))
0 commit comments