sass-loader
Advanced tools
Changelog
16.0.0 (2024-07-26)
sass
and sass-embedded
[!WARNING]
The sass options are different for the
legacy
(before) andmodern
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
},
},
],
},
],
},
};
sass
and sass-embedded
(10be1ba)Changelog
14.2.0 (2024-04-11)
modern-compiler
value for API to reuse compiler process (#1195) (cef40a8)modern
and modern-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.