From 9f41240be0891aeb31e1a6f92994de5312cdfa3b Mon Sep 17 00:00:00 2001 From: Tirth Bodawala Date: Mon, 13 Nov 2017 18:07:45 +0530 Subject: [PATCH] #42 Add watchoptions to compiler config --- src/core/server/dev.server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/server/dev.server.js b/src/core/server/dev.server.js index 93b6ca39..6f32bdb0 100644 --- a/src/core/server/dev.server.js +++ b/src/core/server/dev.server.js @@ -67,6 +67,7 @@ const commonClientMiddlewareInstance = webpackMiddleware(commonClientCompiler, { noInfo: true, contentBase: commonClientConfig.devServer.contentBase, publicPath: commonClientConfig.output.publicPath, + watchOptions: _.get(commonClientConfig, "devServer.watchOptions", {}), serverSideRender: true, }); @@ -137,6 +138,7 @@ if (enableServiceWorker && serviceWorkerConfig !== null) { contentBase: commonClientConfig.devServer.contentBase, publicPath: serviceWorkerConfig.output.publicPath, serverSideRender: true, + watchOptions: _.get(serviceWorkerConfig, "devServer.watchOptions", _.get(commonClientConfig, "devServer.watchOptions", {})), }); app.use(serviceWorkerMiddlewareInstance);