Skip to content

Commit

Permalink
#42 Add watchoptions to compiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthbodawala committed Nov 13, 2017
1 parent 0586bf2 commit 9f41240
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/server/dev.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 9f41240

Please sign in to comment.