Skip to content

Commit

Permalink
Added thread-loader config for application code entrypoint (#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Sadkovoy authored and iansu committed Jun 7, 2018
1 parent d0afe4b commit 3e16544
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,12 @@ module.exports = {
use: [
// This loader parallelizes code compilation, it is optional but
// improves compile time on larger projects
require.resolve('thread-loader'),
{
loader: require.resolve('thread-loader'),
options: {
poolTimeout: Infinity // keep workers alive for more effective watch mode
},
},
{
loader: require.resolve('babel-loader'),
options: {
Expand Down

1 comment on commit 3e16544

@webtids
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a error on using the script -
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: cd packages/react-scripts && node bin/react-scripts.js start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache_logs\2018-06-17T20_24_22_594Z-debug.log

Please sign in to comment.