From 7edf6eaddd79a8e85b0985c9f688963f687cd0b5 Mon Sep 17 00:00:00 2001 From: Dmitriy Sadkovoy Date: Thu, 7 Jun 2018 10:06:47 +0300 Subject: [PATCH] Added thread-loader config for application code entrypoint (#4582) --- config/webpack.config.dev.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 9280cff3217..3f43528ccd8 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -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: {