Closed JohnAlbin closed 3 years ago
You need to open the issue in postcss-nesting
. It should use PostCSS 8 events to transform nested rules after every CSS AST change (seems like right now it transforms it only once).
I searched the issue queue for closed postcss-preset-env
issues, but I didn't think to search for a postcss-nesting
issue.
Sorry about that! Thanks for the quick reply.
If I configure PostCSS to run postcss-mixins before postcss-preset-env and I define a mixin that uses syntax that needs to be transformed by postcss-preset-env, I expect the mixin's output to be processed by later plugins properly.
But right now I get the raw mixin definition printed into my output CSS without the mixin definition being altered by later plugins.
If I have a stylesheet that defines a mixin like this:
The output has invalid CSS where the mixin is used, while the rest of the file is correct:
But I expect the correct output:
This is my postcss.config.js: