npm install --save extra-watch-webpack-plugin-
files:stringorarray, defualt[], attach extra files to webpack's watch system -
dirs:stringorarray, defualt[], attach extra dirs to webpack's watch system
// webpack.config.js
import ExtraWathWebpackPlugin from 'extra-watch-webpack-plugin';
......
{
plugins: [
new ExtraWathWebpackPlugin({
fies: [ 'path/to/file' ],
dirs: [ 'path/to/dir' ]
}),
],
}