webpack-watch-files-plugin-callback
v1.2.0
Published
Webpack watch files with callback
Downloads
4
Readme
webpack-watch-files-plugin
Webpack watch additional files
Installation
npm i --save-dev webpack-watch-files-plugin-callback
Options
files
- (Default[]
) Array of patternsverbose
- (Defaultfalse
) List files founduserCallback
- (Default() => true
) Callback closure
Usage
import WatchExternalFilesPlugin from 'webpack-watch-files-plugin-callback'
const config = {
// ... webpack config ...
plugins: [
// ....
new WatchExternalFilesPlugin({
files: [
'./src/**/*.js',
'!./src/*.test.js'
],
userCallback() {
// Do your banana stuff here :D
}
})
]
}