Skip to content

Commit e7c5452

Browse files
committed
copy watchOptions from webpack options
1 parent 6ba377a commit e7c5452

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/webpack-dev-server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ if(!options.filename)
6767
[].concat(wpOpt).forEach(function(wpOpt) {
6868
wpOpt.output.path = "/";
6969
});
70+
if(!options.watchOptions)
71+
options.watchOptions = firstWpOpt.watchOptions;
72+
if(!options.watchDelay && !options.watchOptions) // TODO remove in next major version
73+
options.watchDelay = firstWpOpt.watchDelay;
7074
if(!options.hot)
7175
options.hot = argv["hot"];
7276

0 commit comments

Comments
 (0)