watch-file-change-and-run-callback-webpack-plugin
v0.1.0
Published
Watch File Change And Run Callback Webpack Plugin
Downloads
1
Maintainers
Readme
watch-file-change-and-run-callback-webpack-plugin
🚧 WIP Project
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