All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
auto
option works using inline module syntax (#1274) (1db2f4d)@import
with spaces before and after and any extensions (#1272) (0c47cf7)@import
and modules (3f49ed0)sourceMap: true
getLocalIdent
escapes by default, the exportName
value is always unescaped/\.icss\.\w+$/i
(the modules.compileType
option is icss
)[emoji]
placeholder was deprecatedicss
option was removed (it was deprecated previously)url()
/@import
(#1195) (dd52931)null
/undefined
(#1193) (0f95841)url
function (88b8ddc)compiler.context
and use webpack://
protocol (#1169) (fb5c53d)exportOnlyLocals
option, now locals
are not exported under the locals
name, it was big regression, we apologize for that (24c0a12)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)
@value
supports importing url()
(#1126) (7f49a0a)url()
resolving algorithm (bc19ddd)style
field from package.json (#1099) (edf5347)file:
protocol (5604205)~
inside packages in node_modules
(76f1480)modules.auto
option, please look at an example of how you can simplify the configuration. (#1067) (c673cf4)modules.exportGlobals
option for export global classes and ids (#1069) (519e5f4)modules.mode
option may be a function (#1065) (0d8ac3b)undefined
when sourceRoot is unavailable (#1036) (ded2a79)@import
at-rulesrequire
(#1014) (e091d27)null
or undefined
(#1006) (6769783)require
(#1004) (80e9662)url
function (#1001) (8f4d6f5)-
(it was regression in 3.0.0
version) (#972) (f51859b)modules.getLocalIdent
to return a falsy value (#963) (9c3571c)Function
behavior for url
and import
options (#939) (e9eb5ad)@value
at-rule in selectors (#941) (05a42e2)@value
at rules now support in selector
, recommends checking all @values
at-rule usage (hint: you can add prefix to all @value
at-rules, for example @value v-foo: black;
or @value m-foo: screen and (max-width: 12450px)
, and then do upgrade){Function}
behavior for url
and import
options (need return true
when you want handle url
/@import
and return false
if not)camelCase
option was remove in favor localsConvention
option, also it is accept only {String}
value (use camelCase
value if you previously value was true
and asIs
if you previously value was false
)exportOnlyLocals
option was remove in favor onlyLocals
optionmodules
option now can be {Object}
and allow to setup CSS Modules
options:
localIdentName
option was removed in favor modules.localIdentName
optioncontext
option was remove in favor modules.context
optionhashPrefix
option was removed in favor modules.hashPrefix
optiongetLocalIdent
option was removed in favor modules.getLocalIdent
optionlocalIdentRegExp
option was removed in favor modules.localIdentRegExp
optionsourceRoot
is present (#901) (e9ce745)getLocalIdent
now accepts false
value (#865) (1825e8a)urls()
with ?#hash
(#803) (417d105)import
at-rules (#806) (4bdf08b)URL
in import
at-rules (#818) (3ebdcd5)require
for urls()
(#854) (3338656)composes
(#845) (453248f)urls()
resolving logic for modules
(local
and global
) and without modules (#843) (fdcf687)import
option doesn't affect on composes
(#822) (f9aa73c)urls
(#856) (5e702e7)import
at-rules (#857) (5e6034c)urls()
(#832) (da95db8)exportOnlyLocals
option (#824) (e9327c0)postcss
ast from other loaders (i.e postcss-loader
) (#840) (1dad1fb)url()
and import
at-rules works the same everywhere, it does not matter whether css modules are enabled (with global
and local
module) or not. Examples - url('image.png')
as require('./image.png')
, url('./image.png')
as require('./image.png')
, url('~module/image.png')
as require('module/image.png')
.modules: false
disable all css modules features), you can return old behaviour change this on modules: 'global'
css-loader/locals
was dropped in favor exportOnlyLocals
optionimport
option only affect on import
at-rules and doesn't affect on composes
declarations@import
at rules now emit warningspostcss@7
minimize
option, use postcss-loader
with cssnano
or use optimize-cssnano-plugin
pluginmodule
option, use modules
option insteadcamelcase
option, use camelCase
option insteadroot
option, use postcss-loader
with postcss-url
pluginalias
option, use resolve.alias
feature or use postcss-loader
with postcss-url
pluginpostcss
to 6
versionnodejs
version is 6.9
webpack
version is 4
undefined
(#641) (0dccfa9)url()
) (#627) (8897d44)options.camelCase
) (#556) (1fee601)[@import](https://github.com/import)
tolerance (#593) (2e4ec09)url
with space(s) (#495) (534ea55)btoa
instead Buffer
(#501) (fbb0714)minimizeOptions
should be query.minimize
! (16c0858)