webpack-watch-external-files-plugin

Webpack plugin to watch external files

MIT License

Downloads
6.9K
Stars
7
Committers
3

Install

npm install webpack-watch-external-files-plugin --save-dev
# or
yarn add webpack-watch-external-files-plugin --dev

Usage

// 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
Package Rankings
Top 8.57% on Npmjs.org
Badges
Extracted from project README
Publish on NPM