watch-file-change-and-run-callback-webpack-plugin
Compatible with Webpack 5
& 4
.
Installation
yarn add watch-file-change-and-run-callback-webpack-plugin
Usage
new WatchFileAndRunCallbackWebpackPlugin({
matchs: [
{
filePath: `${SRC_DIR}/styles/1.less`,
callback: () => console.log('1'),
},
{
filePath: `${SRC_DIR}/styles/2.less`,
callback: () => console.log('2'),
},
],
})
License
MIT © Jason Feng