All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
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)