1.0.2 • Published 7 years ago

delay-copy-webpack-plugin v1.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

Delay Copy Webpack plugin

This is a webpack plugin that copies files to dest position. Compaired with other copy plugins of webpack, it copies files when webpack build process has finished.

It uses the glob library to do files matching.

Installation

Install the plugin with npm:

$ npm install delay-copy-webpack-plugin

Configuration

You can pass a hash of configuration options to DelayCopyWebpackPlugin. Allowed values are as follows:

  • from: {glob} The original pattern the minimatch object represents.
  • to: {string} Dest files save path.
  • interval: {int} (optional) The millisecond number which delay.

Example

//webpack.config.js
new DelayCopyWebpackPlugin({
  from: 'webpack-assets.json',
  to: 'dist/server',
  interval: 2000
}),
1.0.2

7 years ago

1.0.0

7 years ago