-
Notifications
You must be signed in to change notification settings - Fork 90
Nesting isn't working with postcss-preset-env + postcss-cli #16
Comments
Thanks for reaching out, and I’m sorry you’ve been frustrated. Nesting is a Stage 1 feature, so you would want the stage option set to 1. Does doing this resolve your issue? For what it’s worth, I know the default stage is not 1 and that nesting is a highly desirable feature, but it’s up to the CSSWG to progress the standard. |
I see you edited your original comment, but could you throw your project or a reduced test up on GitHub if you are still having an issue? |
Thanks for the help! Setting the staging to |
how did you fix this... infact how do you setup? I'm new to postcss and postcss-preset-env and i've having issues making it work heres my postcss.config.js
what am i missing please |
postcss.config.js: module.exports = { running "postcss src.css > target.css" is what works on my side—after hours of investigating i realized, that staging is the exact opposite of my expectations. So my expectations were wrong. Not enough coffee… ;) Hope, that helps? |
Hey there,
I'm struggling to get your preset to play nicely with
postcss-cli
. It doesn't want to do anything about nesting.I installed your preset with the CLI:
Made a config file:
Copied part of your README example into a CSS file:
Ran the CLI:
Then when I take a look at the compiled file, the nesting hasn't changed:
I've tried using the Browserslist config:
And I've also tried specifying just the nesting plugin:
... Although the output changes when amending the config, there's no change to the nested output. Am I missing something obvious?
The text was updated successfully, but these errors were encountered: