https://github.com/solidzoro/watch-file-change-and-run-callback-webpack-plugin
Watch File Change And Run Callback Webpack Plugin
https://github.com/solidzoro/watch-file-change-and-run-callback-webpack-plugin
callback file watch webpack webpack-plugin
Last synced: 2 months ago
JSON representation
Watch File Change And Run Callback Webpack Plugin
- Host: GitHub
- URL: https://github.com/solidzoro/watch-file-change-and-run-callback-webpack-plugin
- Owner: SolidZORO
- License: mit
- Created: 2022-01-01T14:21:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T17:13:26.000Z (over 4 years ago)
- Last Synced: 2024-04-25T15:01:34.991Z (about 2 years ago)
- Topics: callback, file, watch, webpack, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# watch-file-change-and-run-callback-webpack-plugin
[![version][npm-img]][npm-url]
[![license][mit-img]][mit-url]
[![size][size-img]][size-url]
[![download][download-img]][download-url]
🚧 WIP Project
Compatible with Webpack `5` & `4`.
## Installation
```sh
yarn add watch-file-change-and-run-callback-webpack-plugin
```
## Usage
```js
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][author-url]
[author-url]: https://github.com/SolidZORO
[mit-img]: https://img.shields.io/npm/l/watch-file-change-and-run-callback-webpack-plugin.svg?style=flat&colorA=000000&colorB=000000
[mit-url]: ./LICENSE
[npm-img]: https://img.shields.io/npm/v/watch-file-change-and-run-callback-webpack-plugin?style=flat&colorA=000000&colorB=000000
[npm-url]: https://www.npmjs.com/package/watch-file-change-and-run-callback-webpack-plugin
[size-img]: https://img.shields.io/bundlephobia/minzip/watch-file-change-and-run-callback-webpack-plugin?label=bundle&style=flat&colorA=000000&colorB=000000
[size-url]: https://www.npmjs.com/package/watch-file-change-and-run-callback-webpack-plugin
[download-img]: https://img.shields.io/npm/dt/watch-file-change-and-run-callback-webpack-plugin.svg?style=flat&colorA=000000&colorB=000000
[download-url]: https://www.npmjs.com/package/watch-file-change-and-run-callback-webpack-plugin
[build-img]: https://github.com/SolidZORO/watch-file-change-and-run-callback-webpack-plugin/workflows/badge.svg
[build-url]: https://github.com/SolidZORO/watch-file-change-and-run-callback-webpack-plugin/actions