Releases: webpack-contrib/sass-loader
Releases Β· webpack-contrib/sass-loader
v16.0.3
v16.0.2
v16.0.1
v16.0.0
16.0.0 (2024-07-26)
β BREAKING CHANGES
- use modern Sass JS API by default for
sass
andsass-embedded
Warning
The sass options are different for the legacy
(before) and modern
APIs. Please look at docs how to migrate to the modern options.
Legacy options - https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/
Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/
To return to the previous logic use:
module.exports = {
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: [
"style-loader",
"css-loader",
{
loader: "sass-loader",
options: {
api: "legacy",
// Your options
},
},
],
},
],
},
};
Features
- use modern Sass JS API by default for
sass
andsass-embedded
(10be1ba)
v15.0.0
v14.2.1
v14.2.0
14.2.0 (2024-04-11)
Features
- added the
modern-compiler
value for API to reuse compiler process (#1195) (cef40a8) - support webpack built-in resolver for
modern
andmodern-compiler
API (#1197) (2265b72)
Notes:
Using the modern-compiler
value for the api
option together with sass-embedded
reduces compilation time by 5-10 times, especially for projects using large files with a lot of @import
/@use
, for small files the build time reduction will not be significant.