1.2.0 • Published 6 years ago

webpack-watch-files-plugin-callback v1.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

webpack-watch-files-plugin

Build Status

Webpack watch additional files

Installation

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

Options

  • files - (Default []) Array of patterns
  • verbose - (Default false) List files found
  • userCallback - (Default () => true) Callback closure

Usage

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

const config = {
  // ... webpack config ...
  plugins: [
    // ....
    new WatchExternalFilesPlugin({
      files: [
        './src/**/*.js',
        '!./src/*.test.js'
      ],
      userCallback() {
        // Do your banana stuff here :D
      }
    })
  ]
}
1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago