How to solve the slow speed of react-script build?

I use react-script to build, and find that the speed is slow (20 + seconds). In addition, I found some articles saying that the build react library is a more time-consuming place, and I don"t know if react-script has a corresponding solution.

Mar.30,2021

modify the build command in package.json directly, and remove the place where test is executed.


there is no problem developing simple projects with react-script, which is officially out-of-box.

but it may not be so appropriate for more complex projects. React-script provides a command eject , which is irreversible, so be careful.

after the execution is completed, it can be targeted and optimized. You can use some analysis tools to analyze it, and then prescribe the right medicine to the case.

Menu