webpack-watch-files-plugin
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/webpack-watch-files-plugin package

1.2.1 • Public • Published

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'
      ]
    })
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-watch-files-plugin

Weekly Downloads

94,719

Version

1.2.1

License

ISC

Unpacked Size

9.52 kB

Total Files

3

Last publish

Collaborators

  • florent