css-loader
Advanced tools
Changelog
4.0.0 (2020-07-25)
Node.js
version is 10.13.0
webpack
version is 4.27.0
esModule
option is true
by defaultsourceMap
option depends on the devtool
optionicss
plugin disable by default, you need to setup the modules
option to enable itmodules
option is true
by default for all files matching /\.module\.\w+$/i.test(filename)
regular expression, module.auto
is true
by defaultmodules.context
option was renamed to the modules.localIdentContext
optionmodules.localIdentContext
value is compiler.context
for the module.getLocalIdent
optionmodules.hashPrefix
option was renamed to the modules.localIdentHashPrefix
optionlocalsConvention
option was moved and renamed to the modules.exportLocalsConvention
optiongetLocalIndent
option should be always Function
and should always return String
valueonlyLocals
option was moved and renamed to the modules.exportOnlyLocals
optionimport
option were changed, it is now function(url, media, resourcePath) {}
~
before the file request, i.e. rewrite url(~!!loader!package/img.png)
to url(!!loader!~package/img.png)
url()
resolving algorithm now handles absolute paths instead of ignoring them. This can break builds which relied on absolute paths to refer to the asset directory. (bc19ddd)@value
supports importing url()
(#1126) (7f49a0a)url()
resolving algorithm to support more path types (bc19ddd)style
field from package.json (#1099) (edf5347)file:
protocol (5604205)~
inside packages in node_modules
(76f1480)