You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like for watchContentBase: true, to trigger a reload whenever a file in my public folder changes.
It was also discussed in #1227, but I don't this is a good solution to start another chokidar instance. Plus this is a really common use-case.
It would be really useful to have an option recursive: true in the watchOptions: {}, or more simply a depth: undefined option which goes to override the default chokidar options.
I am willing to make a PR if we decide what direction to take.
The text was updated successfully, but these errors were encountered:
Yep, we should avoid this limitation, feel free to send a PR with remove this depth. Question for depth: 0 in watchpack not related to contentBase option
Operating System: OSX
Node Version: v11.7.0
NPM Version: 6.5.0
webpack Version: 4.29.5
webpack-dev-server Version: 3.2.1
This is a bug
This is a modification request
Code
I have a public folder like this
And my config like this
Actual Behavior
Right now the
watchContentBase
acts only on the root folder, because of this chokidar options:webpack-dev-server/lib/Server.js
Line 943 in cb10f83
Expected Behavior
I would like for
watchContentBase: true,
to trigger a reload whenever a file in my public folder changes.It was also discussed in #1227, but I don't this is a good solution to start another chokidar instance. Plus this is a really common use-case.
It would be really useful to have an option
recursive: true
in thewatchOptions: {}
, or more simply adepth: undefined
option which goes to override the default chokidar options.I am willing to make a PR if we decide what direction to take.
The text was updated successfully, but these errors were encountered: