extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system
npm install extra-watch-webpack-plugin
     
extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system
support webpack@1,2,3,4
``sh`
npm install --save extra-watch-webpack-plugin
- files: string (absolute path or glob pattern) or array, default [], attach extra files to webpack's watch systemdirs
- : string or array, default [], attach extra dirs to webpack's watch system
`js``
// webpack.config.js
import ExtraWatchWebpackPlugin from 'extra-watch-webpack-plugin';
......
{
plugins: [
new ExtraWatchWebpackPlugin({
files: [ 'path/to/file', 'src/*/.json' ],
dirs: [ 'path/to/dir' ],
}),
],
}