Slow production build
See original GitHub issueNot sure if the project is too large or there is something wrong, but my yarn run build
took almost 5 minutes.
The project is about 1k5 files:
git ls-files | wc -l
1540
Is it normal? Is there any --debug
option to verbosely view the time took to compile the project?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:36 (25 by maintainers)
Top Results From Across the Web
Optimizing Performance - React
If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production build.
Read more >Create react app production build very slow on high end ...
It takes around 20 minutes to build. We thought maybe it's our machine, so we ran it on a server with 32 core...
Read more >How to boost the speed of your webpack build?
A story of performance optimization and application of the Pareto principle for a webpack build that has become far too long.
Read more >Build Performance - webpack
This guide contains some useful tips for improving build/compilation performance. General. The following best practices should help, whether you're running ...
Read more >Webpack production build very very slow - GSAP - GreenSock
I encourage you to start from nothing and include the bare minimum in your webpack build and then see if the issue still...
Read more >
Top Related Medium Post
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Updated to react-scripts 1.0.11 today (with webpack 3), build time reduced from 280s -> 175s. That’s something 😃
We’ll switch to Webpack 3 soon which will be a tad faster. Unfortunately there’s only so much we can do when underlying tools are slow 😢
I see you’re using code splitting—maybe this could help? https://github.com/webpack/webpack/issues/4636#issuecomment-301920118 I’m not sure how exactly you’re using it.
Other than that, I don’t really have good news for you. You can contribute to webpack to make it faster, or maybe investigate approaches like HappyPack and whether we could switch to them.