|
I'm using CRA (react-scripts 3.4.4, but also tried with 4.0.0) Everything is fine in dev server, but I get this error when I try to build. AFAIK the css file is already minified (is all in one line) and working fine in other projects. Can I make react-scripts NOT process css files inside node_modules? Thank you! |
Answered by
JulianG
Nov 19, 2020
Replies: 2 comments 2 replies
|
I found the answer to this here: csstools/postcss-preset-env#163 (comment) I fixed my issue like this:
"resolutions": {
"react-scripts/postcss-preset-env/postcss-custom-properties": "^10.0.0"
} |
2 replies
Answer selected by
JulianG
|
thanks brother.. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the answer to this here: csstools/postcss-preset-env#163 (comment)
I fixed my issue like this:
install
"postcss-custom-properties": "^10.0.0"use yarn resolutions to for react-scripts to use the same version: