-
-
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
fix: allow custom config file for postcss again #11926
base: main
Are you sure you want to change the base?
fix: allow custom config file for postcss again #11926
Conversation
this fixes issue/facebook#11920 and was introduced in commit/5614c87
Hi @kitsunekyo! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Any update on this? This regression bit us hard. Thank you ❤️ |
yeah, this is just a single line change. |
Just throwing my vote in to say please consider merging this. Not allowing users to specify which PostCSS plugins they would like to use is a big source of support burden for Tailwind as we're constantly hearing from CRA users who are confused why things aren't working as expected, and right now all we can really do is say "sorry, here are some other tools you can use instead of CRA" which is a bummer. |
I was able to make tailwind work (in a very hacky way) using the alpha version of CRACO. |
can anyone help me with the checks? unfortunately the CI log doesnt really say much, and as only a single file changed I fail to understand why the checks fail. |
@kitsunekyo I can't inspect build errors, Azure Pipelines says Build not found. |
Just following up on this — here's a bug people are running into using the latest Tailwind with CRA that would be easy for people to fix if they could just control which PostCSS plugins were being using: tailwindlabs/tailwindcss#8597 (comment) As it stands though they are stuck with |
@mrmckeb any chance we can get feedback on this? |
Is it likely this will find its way into an upcoming patch release? |
this resolves #11920
this was possible before, but was broken with 5614c87
before commit 5614c87 it was possible to use a custom
postcss.config.js
file to enable/customize postcss plugins and more. this is required for tailwind users that want to use common features like postcss-nesting or postcss-import. https://tailwindcss.com/docs/using-with-preprocessors#build-time-importshere is the docu to the webpack config option that should not be set to false: https://webpack.js.org/loaders/postcss-loader/#config
Reproduction Steps
see CONTRIBUTING.md to test locally. in the newly generated app (using the updated react-scripts config of course) apply these changes:
when running the app with
npm start
you should see a correctly styled tailwind button. without this change, the button styles are not correctly applied due to broken import order withoutpostcss-import
.see my original issue on tailwind tailwindlabs/tailwindcss#7049