-
Notifications
You must be signed in to change notification settings - Fork 51
Description
We just updated to postcss 8 including the postcss 8 compatible postcss-nested
version which is 5.0 and later. Unfortunately this breaks all ember-css-modules
nested classes that work fine with postcss-nested
v4.
Interestingly enough it works with using postcss 8 for everything and then just including postcss-nested
v4 (which will install postcss 7 also) as a before plugin in css modules settings.
Here are reproduction repos:
Both have css modules css like this:
.foo {
border: 1px solid blue;
&__bar{
background: red;
}
}
postcss-nested@4
as before plugin
https://github.com/emattias/ember-css-module-reproduction-nested-4
Here the css module class gets compiled to: _foo__bar_1h7kyx
(which is correct)
postcss-nested@5
as before plugin
https://github.com/emattias/ember-css-module-reproduction-nested-5
Here the css module class gets compiled to: _foo_1h7kyx__bar
(the hash is in the wrong place)