-
Notifications
You must be signed in to change notification settings - Fork 363
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
Adds a --css-modules
option
#370
Conversation
Starting this draft here - the snapshots are failing for me, even at a clean clone. So will investigate. Also wanting to confirm a few things, and maybe clean that config setting thing up a bit. Also, the jest fixtures are a bit awkward for this. So going to also split out cli args into potentially separate tests, that run "build commands" from the package json in its own fixture or something. #minddump 💯 |
The unit tests for It seems there is no lock file for this project, do we think that maybe one of the dependants (TypeScript 3.4) could have caused issues? Master hasnt built and ran in over 10 days? I believe this issue to be resolved post #371 |
@developit thanks for that - the PR has been updated! 🚀 |
It'd be great for this to be added to I'd love to make sure the docs get updated accordingly with a note about CSS module support. Happy to send a PR once this gets merged. |
if this ever gets merged ;) @transitive-bullshit |
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.
i find only one test for three possible flag values (null, true, false)
Guys, we want to move our projects on microbundle, but cannot do it without css modules. Are you stop developing this feature? |
What is left to get this across the line?? @developit @ForsakenHarmony @transitive-bullshit Its just docs yeah? |
Sorry about the delays, mental health not doing so well But yeah would be great adding something to the readme |
I have updated this PR, with a focus on readability. Wrote some docs on how to consume this, and also a better explanation on the different use cases, and their outcomes. One change however is, to treat @hbroer I wrote tests for all avenues. I will however note, that current the A simple solution for now, would be to not pass the scopeName config when the option is null. |
Thanks for this feature 👍 Is it possible to have it in a release soon ? |
With this PR, I aim to add an option to the cli, that'll allow developers using css-modules to bundle their things, using this. I gather that this would be solved in the future with a config file, or convention.
I aim for something like
microbundle entry.js --css-modules
that when ran to produce this, as yeah, probably not many people want this as the default. And also makes this backwards compatible.