extra-watch-webpack-plugin

extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
extra-watch-webpack-plugin
60161.0.35 years ago6 years agoMinified + gzip package size for extra-watch-webpack-plugin in KB

Readme

NPM version Build Status Build status Coverage Status Dependency Status Greenkeeper badge
<img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
extra watch webpack plugin

extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system

support webpack@1,2,3,4


Install


npm install --save extra-watch-webpack-plugin

Options


  • files: string (absolute path or glob pattern) or array, default [], attach extra files to webpack's watch system
  • dirs: string or array, default [], attach extra dirs to webpack's watch system

Usage


// webpack.config.js
import ExtraWatchWebpackPlugin from 'extra-watch-webpack-plugin';
......
{
  plugins: [
    new ExtraWatchWebpackPlugin({
      files: [ 'path/to/file', 'src/**/*.json' ],
      dirs: [ 'path/to/dir' ],
    }),
  ],
}