sass-loader
Advanced tools
Changelog
11.0.0 (2021-02-05)
~
is deprecated and can be removed from your code (we recommend it), but we still support it for historical reasons.Why you can removed it?
The loader will first try to resolve @import
/@use
as relative, if it cannot be resolved, the loader will try to resolve @import
/@use
inside node_modules
.
Using ~
means looking for files in node_modules
or resolve.alias
or resolve.fallback
.
webpack
version is 5
resolve.byDependency
option, you can setup { resolve: { byDependency: { sass: { mainFiles: ['custom', '...'] } } } }
Changelog
10.0.0-rc.0 (2020-08-24)
sources
in source maps, also avoids modifying sass
source maps if the sourceMap
option is false