-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(web): default react builds to production when NODE_ENV is not set explicitly #7727
Conversation
…vided ISSUES CLOSED: nrwl#7410
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/Bn5pZvecemrW2Eqt7VZoijSVY7nW |
@ndcunningham @jaysoo It seems |
This is still producing big CSS files: Here's the output of my build run:
And here's my
|
Like mentioned in #7410 the same config works in a Next.js app. |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Currently, react builds are not set to default to production (Look at the styles size)
Expected Behavior
Running
yarn nx run project:build:production
will now default NODE_ENV to productionRelated Issue(s)
Fixes #7410