Skip to content

Commit 9f41240

Browse files
committed
#42 Add watchoptions to compiler config
1 parent 0586bf2 commit 9f41240

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/server/dev.server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const commonClientMiddlewareInstance = webpackMiddleware(commonClientCompiler, {
6767
noInfo: true,
6868
contentBase: commonClientConfig.devServer.contentBase,
6969
publicPath: commonClientConfig.output.publicPath,
70+
watchOptions: _.get(commonClientConfig, "devServer.watchOptions", {}),
7071
serverSideRender: true,
7172
});
7273

@@ -137,6 +138,7 @@ if (enableServiceWorker && serviceWorkerConfig !== null) {
137138
contentBase: commonClientConfig.devServer.contentBase,
138139
publicPath: serviceWorkerConfig.output.publicPath,
139140
serverSideRender: true,
141+
watchOptions: _.get(serviceWorkerConfig, "devServer.watchOptions", _.get(commonClientConfig, "devServer.watchOptions", {})),
140142
});
141143
app.use(serviceWorkerMiddlewareInstance);
142144

0 commit comments

Comments
 (0)