v3.0.0
alexander-akait
released this
11 Jun 12:42
·
394 commits
to master
since this release
3.0.0 (2019-06-11)
Bug Fixes
- avoid the "from" argument must be of type string error (#908) (e5dfd23)
- invert
Function
behavior forurl
andimport
options (#939) (e9eb5ad) - properly export locals with escaped characters (#917) (a0efcda)
- property handle non css characters in localIdentName (#920) (d3a0a3c)
Features
- modules options now accepts object config (#937) (1d7a464)
- support
@value
at-rule in selectors (#941) (05a42e2)
BREAKING CHANGES
- minimum required nodejs version is 8.9.0
@value
at rules now support inselector
, 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)- invert
{Function}
behavior forurl
andimport
options (need returntrue
when you want handleurl
/@import
and returnfalse
if not) exportLocalsStyle
option was remove in favorlocalsConvention
option, also it is accept only{String}
value (usecamelCase
value if you previously value wastrue
andasIs
if you previously value wasfalse
)exportOnlyLocals
option was remove in favoronlyLocals
optionmodules
option now can be{Object}
and allow to setupCSS Modules
options:localIdentName
option was removed in favormodules.localIdentName
optioncontext
option was remove in favormodules.context
optionhashPrefix
option was removed in favormodules.hashPrefix
optiongetLocalIdent
option was removed in favormodules.getLocalIdent
optionlocalIdentRegExp
option was removed in favormodules.localIdentRegExp
option