Closed komlev closed 8 years ago
It is useful thing. But I think replacing &
in any declaration is too dangerous.
Maybe you should write a separated plugin postcss-current-selector
for this case. It will be much safer and will use power of PostCSS modularity (like UNIX way).
I will add your plugin to postcss-nested docs. Also do not worry about plugin development. This plugin will be very small and I will help you on any question (you can ask here or in Gitter chat).
What do you think about separated plugin?
Sure, good stuff. I'll do that.
Made this simple pugin for getting current selector in declaration https://github.com/komlev/postcss-current-selector
@komlev awesome, I mentioned it in docs bf93fe1
I've been playing with postcss for some time and noticed that you can not use pattern which works in sass like this:
In postcss-nested I can not use reference operator in variables or in at-rules.