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 (facebook#4562)
  • Loading branch information
Dmitriy Sadkovoy authored and gaearon committed Jun 5, 2018
1 parent 60bfc3e commit becc298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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 becc298

Please sign in to comment.