webpack-watch-files-plugin

v1.0.2
Webpack watch files

webpack-watch-files-plugin

Build Status

Webpack watch additional files. This plugin can trigger a build when these files change.

The livereload will be triggered if you use it but does not work with HRM.

Installation

npm i --save-dev webpack-watch-files-plugin

Options

  • files - (Default []) Array of patterns
  • verbose - (Default false) List files found

Usage

import WatchExternalFilesPlugin from 'webpack-watch-files-plugin'

const config = {
  // ... webpack config ...
  plugins: [
    // ....
    new WatchExternalFilesPlugin({
      files: [
        './src/**/*.js',
        '!./src/*.test.js'
      ]
    })
  ]
}

Metadata

  • ISC
  • Whatever
  • Florent Detry
  • released 4/17/2018

Downloads

Maintainers