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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32b54-40e79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32b54-40e79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?