You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This issue originally began "Adding some CSS to a brand new create-react-app project makes the build fail". After a few hours I eventually got here (via postcss-preset-env) with what I believe is the most minimal test case.
Add the following to the bottom of test/basic.css and note that running npm test fails:
Run yarn build and watch it fail, citing an error on the line with the linear-gradient
Run yarn eject to get into a state where you can customise the webpack build
Edit config/webpack.config.prod.js and modify the options for the the postcss-preset-env plugin, modifying {... stage: 3} to be {... stage:3, features: { 'custom-properties': false}} to disable the custom-properties transform
Run yarn build again and note that the build is now sucessful