1.0.1 • Published 5 years ago

copy-zip-plugin v1.0.1

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

copy-zip-plugin

Installation

npm install copy-zip-plugin -D

Usage

const CopyZipPlugin = require('copy-zip-plugin')

const config = {
  plugins: [
    new CopyZipPlugin([
    {
      from: path.join(__dirname, '../dist/a/index.js'),
      to: path.join(__dirname, '../dist/index.js')
    }], {
      exclude: /\.zip$/i,
      path: path.join(__dirname, '../dist'),
      filename: `${name}.zip`
    })
  ]
}
1.0.1

5 years ago

1.0.0

5 years ago