-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
postcss-bundler
#1090
postcss-bundler
#1090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This currently only contains some minimal tests, not the full test suite from : https://github.com/romainmenke/css-import-tests
I will add that in a separate PR, because it's just so much and it makes it near impossible to review this.
import postcssRebaseURL from '@csstools/postcss-rebase-url'; | ||
|
||
/** postcss-bundler plugin options */ | ||
export type pluginOptions = never; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If useful we can add a features
option here in the same style as postcss-preset-env
.
Allowing users to enable or disable specific features that do or don't apply to them and their setup.
In the beginning however I want to see how useful it is without any config at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Can't wait to start using this!
Thank you for reviewing all this 🙇 |
part of #1060
A plugin pack for bundling CSS
The goal is to pass these tests and to do for bundling CSS what
postcss-preset-env
does for fallbacks.It uses :
postcss-import
url()
valuesI don't intend to include things best left to other tools :
/dist
folderIt is better if this tool adheres to these principles :
postcss-import
I initially hoped to be able to use
postcss-import
directly, but even after fully rewriting that plugin I am still not where I need/want to be. We would still need to override any and every possible thing to make it compatible with the goals I laid out here.I think it is better to do a hard fork and strip out all the parts we don't intend to use.
After doing this work, I found it was much easier to correctly fix the last remaining issues to pass all tests.