Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amitsingh-007/webpack-watch-external-files-plugin
Webpack plugin to watch external files
https://github.com/amitsingh-007/webpack-watch-external-files-plugin
npm npm-package watch-external-files webpack webpack-plugin
Last synced: 14 days ago
JSON representation
Webpack plugin to watch external files
- Host: GitHub
- URL: https://github.com/amitsingh-007/webpack-watch-external-files-plugin
- Owner: amitsingh-007
- License: mit
- Created: 2021-05-18T17:00:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T14:40:17.000Z (20 days ago)
- Last Synced: 2024-10-23T09:40:15.594Z (18 days ago)
- Topics: npm, npm-package, watch-external-files, webpack, webpack-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/webpack-watch-external-files-plugin
- Size: 240 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Webpack Watch External Files Plugin
A Webpack Plugin having zero dependencies which allows you to watch external files which are not included in the webpack build. It triggers a webpack build if any external file changes.
![npm](https://img.shields.io/npm/v/webpack-watch-external-files-plugin) ![bundlephobia](https://badgen.net/bundlephobia/min/webpack-watch-external-files-plugin) [![Publish on NPM](https://github.com/amitsingh-007/webpack-watch-external-files-plugin/actions/workflows/publish.yaml/badge.svg)](https://github.com/amitsingh-007/webpack-watch-external-files-plugin/actions/workflows/publish.yaml) ![node-lts](https://img.shields.io/node/v-lts/webpack-watch-external-files-plugin) ![NPM](https://img.shields.io/npm/l/webpack-watch-external-files-plugin)
## Install
```bash
npm install webpack-watch-external-files-plugin --save-dev
# or
yarn add webpack-watch-external-files-plugin --dev
```## Usage
```js
// webpack.config.js:const WatchExternalFilesPlugin = require('webpack-watch-external-files-plugin');
module.exports = {
plugins: [
new WatchExternalFilesPlugin({
files: ['/path/**/*.js', '/path/tofile.txt', '!./src/**/*.json'],
}),
],
};
```# Options
```js
new WatchExternalFilesPlugin({
files: [],
});
```- files[`list`] - a list of files or glob patterns