Open geloescht opened 6 years ago
Got same performance issues, thanks god for your advice to remove semicolons.. I've created PR (https://github.com/kitze/custom-react-scripts/pull/121) for this, so hope we can hot-fix this critical issue...
@geloescht thanks for your attention! 4 node.js processes had been killing my CPU.
@geloescht I can confirm the same behavior. Disabling Webpack Dashboard fixed the performance overhead issues and improved the hot reloading times considerably.
The tradeoff was actually having to turn the AC heater on, instead of just using my notebook as a heater by frequently triggering a file change. In this case, it was quite literally a "hot reload".
All options set by editing the .env file that is created by default have no effect whatsoever. The reason is, that the environment variables include semicolons at the end of each line. But config/custom-react-scripts/config.js expects the value "false" without a semicolon, thus enabling every single option if it finds "false;" instead.
BTW: webpack-dashboard seems to introduce serious memory leak issues. It took me ages to hunt these down, because I thought I had disabled the dashboard.