webpack-watch-external-files-plugin
v5.0.0
Published
Webpack plugin to watch external files
Maintainers
Readme
[!IMPORTANT] 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.
Install
npm install webpack-watch-external-files-plugin --save-dev
# or
yarn add webpack-watch-external-files-plugin --devUsage
// webpack.config.js:
import WatchExternalFilesPlugin from 'webpack-watch-external-files-plugin';
export default {
plugins: [
new WatchExternalFilesPlugin({
files: ['/path/**/*.js', '/path/tofile.txt', '!./src/**/*.json'],
}),
],
};Options
new WatchExternalFilesPlugin({
files: [],
});- files[
list<string>] - a list of files or glob patterns
