Skip to content

Commit

Permalink
Configured the thread-loader to keeping workers alive in development …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
Dmitriy Sadkovoy committed Jun 5, 2018
1 parent a98c3df commit 6a663b8
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 @@ -258,7 +258,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

0 comments on commit 6a663b8

Please sign in to comment.