CSS animation sytax works as expected
animation syntax becomes broken when transformed with css modules
Give this input:
animation: slide-right 300ms forwards ease-out, fade-in 300ms forwards ease-out;
Produces this invalid output ('local' near the end) since version 2.0:
animation: slide-right__Fzt 300ms forwards ease-out, fade-in__1Ir 300ms :local(forwards) :local(ease-out);
css loader:
{
loader: 'css-loader',
options: {
modules: true
}
}
Issue related to postcss-modules, solution now is to use [email protected]
Looks like it may be from this dependency:
https://github.com/css-modules/postcss-modules-local-by-default
There are a bunch of related tests, so maybe some specific combination with my example
https://github.com/css-modules/postcss-modules-local-by-default/blob/master/test.js#L175-L181
Yep, problem in dependence (in postcss-modules-local-by-default), feel free to send a PR in this repo with fix and we upgrade deps, thanks. I can take care about this in next week, a lot of other issues
Same issue occurred at my environemnt too, And I'll attempt to fix it 馃憠
https://github.com/css-modules/postcss-modules-local-by-default/pull/5
Most helpful comment
Fixed in https://github.com/webpack-contrib/css-loader/releases/tag/v2.0.2