-
-
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
Cra can't support postcss-nested syntax because webpack.config.js file haven't postcss-nested module #9604
Comments
Just a thought: Wouldn't it be much easier to configure postcss by using a postcss.config.js file that is created when using CRA instead of the inline options in the loader? e.g.
|
|
This would be my preferred solution. |
this worked for us (incorporating a tailwind project into a cra/emotion project), adjusting the |
Is your proposal related to a problem?
Cra can't support postcss-nested syntax because webpack.config.js file haven't postcss-nested module.
Sample nested css in my header.module.css file
Expected behavior when compiled
Describe the solution you'd like
The problem solved when ejected cra and adding the 'postcss-nested' module to webpack.module.js.
Can you support postcss-nested by default?
Describe alternatives you've considered
postcss-nesting may be an alternative.
Additional context
(Write your answer here.)
The text was updated successfully, but these errors were encountered: