Releases: webpack/css-loader
Releases · webpack/css-loader
v4.2.2
v4.2.1
v4.2.0
v4.1.1
v4.1.0
v4.0.0
⚠ BREAKING CHANGES
- minimum required
Node.jsversion is10.13.0 - minimum required
webpackversion is4.27.0 - the
esModuleoption istrueby default - default value of the
sourceMapoption depends on thedevtooloption icssplugin disable by default, you need to setup themodulesoption to enable it- the
modulesoption istrueby default for all files matching/\.module\.\w+$/i.test(filename)regular expression,module.autoistrueby default - the
modules.contextoption was renamed to themodules.localIdentContextoption - default the
modules.localIdentContextvalue iscompiler.contextfor themodule.getLocalIdentoption - the
modules.hashPrefixoption was renamed to themodules.localIdentHashPrefixoption - the
localsConventionoption was moved and renamed to themodules.exportLocalsConventionoption - the
getLocalIndentoption should be alwaysFunctionand should always returnStringvalue - the
onlyLocalsoption was moved and renamed to themodules.exportOnlyLocalsoption - function arguments of the
importoption were changed, it is nowfunciton(url, media, resourcePath) {} - inline syntax was changed, please write
~before the file request, i.e. rewriteurl(~!!loader!package/img.png)tourl(!!loader!~package/img.png)
Features
@valuesupports importingurl()(#1126) (7f49a0a)- improve
url()resolving algorithm (bc19ddd) - named export for locals (#1108) (d139ec1)
- respected the
stylefield from package.json (#1099) (edf5347) - support
file:protocol (5604205) - support server relative URLs
Bug Fixes
- resolution algorithm, you don't need
~inside packages innode_modules(76f1480)