MoOx / postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.
https://moox.io/blog/deprecating-cssnext/
MIT License
5.3k stars 188 forks source link

& selector not supporting BEM style naming convention #419

Closed theboyWhoCriedWoolf closed 6 years ago

theboyWhoCriedWoolf commented 6 years ago

Hello,

I have recently updated the packages and postCss. I am using the plugin with Webpack as before.

before my css was:

.classA {
    &__element {
        // css block code
    }
}

Before, this would cover classA__element as a class name. Now it seems that this is not possible.

Is there a different way I can implement this?

Thanks in advance for any help.

MoOx commented 6 years ago

Not from what I know. I has never been possible per specification :( Try something like precss maybe.