-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
- Operating System: Windows 10
- Node Version: 9.2.0
- NPM Version: 5.5.1
- webpack Version: 3.8.1
- webpack-dev-server Version: 2.9.5
- This is a bug
- This is a feature request
- This is a modification request
Code
devServer: {
contentBase: path.join(__dirname, 'dist'),
watchContentBase: true,
watchOptions: {
ignored: '/\*\*\/*.html/' // or /\*\*\/*.html/ or '**/*.html'
}
}
Expected Behavior
Ignore all *.html
files.
Actual Behavior
Nothing will be ignored. I also checked the source code from webpack and webpack-dev-server and I didn't found a place where the configuration watchOptions.ignored
will be used.
For Bugs; How can we reproduce the behavior?
Start the dev-server with option watchContentBase
and try to ignore watch some files from the content base.
factoidforrest, JeremyTCD and tgxn