Webpack plugin to watch external files
npm install webpack-watch-external-files-pluginA 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 !bundlephobia  !node-lts !NPM
> ⚠️ This package is ESM-only and must be used with ESM-compatible build configurations.
> For CommonJS support, please use version 3.x of this package.
``bash`
npm install webpack-watch-external-files-plugin --save-devor
yarn add webpack-watch-external-files-plugin --dev
`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'],
}),
],
};
`
`js`
new WatchExternalFilesPlugin({
files: [],
});
- files[list