Empty CSS classes lost in postcss-nested & postcss-modules -


i have css i'm trying compile postcss, postcss-nested , postcss-modules:

.foo {   &__bar {     color: red;   } } 

i want compile , use postcss-modules classes out of it, should output:

{  foo: 'hash',  foo__bar: 'hash', } 

the problem plugin going output only:

.foo__bar { color: red; } 

and postcss-modules isn't able extract .foo, exposing only:

{  foo__bar: 'hash', } 

i noticed isn't problem if use webpack , css-loader (with ?modules&importloaders=1) it's problem if use barebones postcss.

this repro of code:
https://runkit.com/fezvrasta/59775c35542cda0012cc20ef

ideas?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -