1.0.3 • Published 8 years ago
extra-watch-webpack-plugin v1.0.3
npm install --save extra-watch-webpack-pluginfiles:string(absolute path or glob pattern) orarray, default[], attach extra files to webpack's watch systemdirs:stringorarray, default[], attach extra dirs to webpack's watch system
// webpack.config.js
import ExtraWatchWebpackPlugin from 'extra-watch-webpack-plugin';
......
{
plugins: [
new ExtraWatchWebpackPlugin({
files: [ 'path/to/file', 'src/**/*.json' ],
dirs: [ 'path/to/dir' ],
}),
],
}