-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting preset-env options? #127
Comments
Hello, @marr . I had the same doubt, but by reading the way options are passed to the plugins, it seems that every option is passed to every plugin: https://github.com/jonathantneal/precss/blob/master/src/index.js So all you have to do is to set the options at the root. I guess there are no collisions between options names across plugins, otherwise it should be problematic. |
There are some collisions. For example, postcss-custom-properties and postcss-custom-media share the same option names Documentation at https://github.com/jonathantneal/precss/wiki/Options refers to version 2.0.0. Starting from 3.0.0 there's no way to split options. As @luislhl said, every option is passed to every plugin. |
Hello there, I´ve been working on solving this problem, currently waiting for feedback on my PR #132 Have a good one :) |
Hi, thanks for this plugin [collection]. I am trying to set the
importFrom
option for the preset-env plugin. Are those options set at the root, or is there a prefix that we need to know about?My postcss.config.js looks like this:
However, the css I'm compiling appears not to find the variables declared in variables.css.
The text was updated successfully, but these errors were encountered: