Skip to content
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

Unoptimized build for "react-scripts build" #1960

Closed
tcr opened this issue Apr 10, 2017 · 5 comments
Closed

Unoptimized build for "react-scripts build" #1960

tcr opened this issue Apr 10, 2017 · 5 comments

Comments

@tcr
Copy link

tcr commented Apr 10, 2017

I'm using "react-scripts build" as part of a workflow with an express server that relies on running "react-scripts build" on deploy. Is there a way to speed up build times for the build script, by running a "--debug" or "--unoptimized" flag?

@viankakrisna
Copy link
Contributor

Currently, no. react-scripts build is optimized to output an optimized production static files, which means uglifying, dedupe, .etc. Also, I'm curious about your build setup, shouldn't react-scripts build run locally / CI server? your production server shouldn't ever run it. It should just serve the optimized build.

@viankakrisna
Copy link
Contributor

See #1070 for more info

@gaearon
Copy link
Contributor

gaearon commented Apr 10, 2017

Yea, this is pretty much the same request as #1070 so let’s close in favor of that.
Currently we recommend using npm start in development, and the proxy feature in case you want to tie that in with a backend on a different port.

@gaearon gaearon closed this as completed Apr 10, 2017
@umkame
Copy link

umkame commented Apr 12, 2018

@viankakrisna Perfect! I use react-script build as part of another build process of my web app. I want to run react-app in development mode when i build whole my app in development mode.

@codebend3r
Copy link

You can run react-scripts start & which essentially runs react-scripts unoptimized and the & at the end escapes it.

@lock lock bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants