-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add postcss-use plugin #213
Comments
I don’t think we want to commit to supporting the PostCSS ecosystem right now. We use autoprefixer as an implementation detail, but we don’t want to lock ourselves into PostCSS yet. Thanks for the suggestion though! |
Any updates on this? It would be a great way to enable us to use PostCSS and it would be optional without any additional config. (well, I'd love a way to define a PostCSS preprocessor... like SugarSS) |
No, there are no updates on this. (Usually if there are updates, they appear on the issue. 😉 )
While it would be “optional”, the reality is that we’d have to keep supporting it forever because some people would rely on it. This could hurt our ability to integrate other (potentially incompatible) tools. For now our stance is that if you want CSS preprocessors, you should use their command-line utilities to compile the styles down to regular CSS. Then you can import that CSS in your components. |
I've pretty much moved all my stylus and less projects over to PostCSS as I see it as the future. I find that this config is all I need to replicate my Less and Stylus needs: https://github.com/quantumjs/solar-popup/blob/master/postcss.config.js Looks like I'll have to stick to css for now, but its good enough. |
What other tools? Is there something better at post processing css on the horizon? Since postcss is already being used as 'an implementation detail' it seems incomplete to not support other plugins, and a bummer that I |
And one more thing for today 😅
I think it would be nice to add postcss-use plugin into build pipeline.
I think it will organically fit with package core idea - "zero-configuration". So for current builds nothing will actually change, no new filesystem APIs, no additional keys in CLI, however, the ability to use postcss plugins will suddenly appear.
The thing is that by default it's all same css (OK, with autoprefixer), but you can use
@use
keyword to add postcss plugins.If that seems ligit, I already have a commit for PR - https://github.com/Jabher/create-react-app/tree/feature/postcss-use.
The text was updated successfully, but these errors were encountered: