Is it possible to restart the webpack-dev server when changing a specific set of arbitrary files?
Something along the lines of:
devServer: { watchTheseFiles: [ 'path/to/files', 'path/to/more/files' ] }
And in more detail, can I specify a regular expression, which files to watch?
I do this as a little hack to reload when I run certain changes in arbitrary files (they can be .txt , .png , whatever ...)
Currently, the specified paths in the contentBase do not seem to trigger a reboot when the files change.
source share