3.1.0 • Published 2 years ago
webpack-watch-external-files-plugin v3.1.0
Install
npm install webpack-watch-external-files-plugin --save-dev
# or
yarn add webpack-watch-external-files-plugin --devUsage
// 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
new WatchExternalFilesPlugin({
files: [],
});- files
list<string>- a list of files or glob patterns