-
-
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
include postcss-import for proper tailwind support #11920
Comments
I'm playing around with v5 + craco today, and I've had no issues using tailwindcss. What problem are you having with v5+craco+tailwindcss |
webpack 5 has changed the structure of the postCss options.
so using craco to prepend a plugin, or change the plugins at all will result in an error see this issue: dilanx/craco#353 |
Got it. I wasn't sure if you were trying to enhance CRA's usage of postcss or not; it sounds like you are. |
i just found out that for some reason create-react-app disables the use of config files: if you dont want to include this issue was introduced in 5614c87 |
this fixes issue/facebook#11920 and was introduced in commit/5614c87
See dilanx/craco#378 |
is there an update or plan on this? |
as communicated, there is no intention to support cra any further |
Is your proposal related to a problem?
a very common use-case of tailwind is using it with the
postcss-import
pluginhttps://tailwindcss.com/docs/using-with-preprocessors#build-time-imports
as CRA already provides support for tailwind out of the box and is opinionated about the plugins (flexbugs fixes, preset-env, ...) supporting this use case would be helpful.
Describe the solution you'd like
add
postcss-import
as a dependency + plugin, to provide proper support for common tailwind features.Describe alternatives you've considered
postcss.config.js
to overwrite theloaderOptions
, but the file is just ignored.PostCSS Import Order with base styles not working tailwindlabs/tailwindcss#7049 (comment)
Additional context
the issue with not having
postcss-import
available isn't immediately obivious. but it breaks the load order of css imports.tailwindlabs/tailwindcss#7051
The text was updated successfully, but these errors were encountered: