-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
React.js - change config path in CRA v5 #8479
Comments
Unfortunately not, CRA is extremely locked down and they don't let you customize the PostCSS configuration 😔 I would recommend using Vite instead of CRA — it is faster and easy to customize, with no limitations on things like PostCSS configuration. Here's the relevant PR on CRA for adding support for custom PostCSS configurations: facebook/create-react-app#11926 I don't expect it will ever be merged unfortunately. Here's some other context: facebook/create-react-app#11717 (comment) Closing since nothing we can do about it unfortunately other than recommend other tools. |
You can use craco with Felipe Zavan example |
@ksbulgakov thank you! it worked! |
+1 working, thank you! ❤️ heres my set up:
|
What version of Tailwind CSS are you using?
3.0.11
What build tool (or framework if it abstracts the build tool) are you using?
"react": "^17.0.2",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14",
What browser are you using?
Chrome
What operating system are you using?
Windows
Describe your issue
The problem is that after I upgrade from v2 to v3, I can't change the config path like I did in v2.
Here's an example:
postcss.config.js
Because tailwindCSS v3.0.11 needs creact-react-app v5, it won't let me use postCSS options to change the path. Is there a solution for this?
Thank you!
The text was updated successfully, but these errors were encountered: