Issue with CRA and nesting #13506
Unanswered
gquagliano
asked this question in
Help
Replies: 1 comment
-
Hey @gquagliano! Create React App by default comes with a Browserslist configuration: "browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
} So I assume when building with CRA, PostCSS picks up the You can try extending the Browserslist production configuration to see if it changes the results as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this css code in a project recently created following the steps from:
https://tailwindcss.com/docs/guides/create-react-app
https://tailwindcss.com/docs/using-with-preprocessors#nesting
npm run build
produces the following output:It's like it merges everything deeper than two levels of nesting.
Building manually with
npx tailwind -i src/App.css -o output.css
does produce the correct output:Any ideas? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions