- Operating System: Windows 10
- Node Version: 9.2.0
- NPM Version: 5.5.1
- webpack Version: 3.10.0
- webpack-dev-server Version: 2.9.7
Code
// webpack.config.js
...
devServer: {
...
contentBase: DEST,
watchContentBase: true,
...
}
Expected Behavior
Setting watchContentBase to true should watch contentBase paths all way deep
Actual Behavior
According to chockidar documentation, setting depth parameter limits the depth of folders being traversed, and the fix of #1208 limits it to 0, leading to changes in the deeper folders being ignored, and not triggering recompilation.
For Bugs; How can we reproduce the behavior?
- Place some folder with files and nested structure in the
contentBase folder (folder1/folder2/file1.css)
- Start webpack-dev-server with
watchContentBase: true
- Change file1.css from the structure created on step 1.
Code
Expected Behavior
Setting
watchContentBasetotrueshould watchcontentBasepaths all way deepActual Behavior
According to chockidar documentation, setting
depthparameter limits the depth of folders being traversed, and the fix of #1208 limits it to 0, leading to changes in the deeper folders being ignored, and not triggering recompilation.For Bugs; How can we reproduce the behavior?
contentBasefolder (folder1/folder2/file1.css)watchContentBase: true