copy-zip-plugin

```bash npm install copy-zip-plugin -D

Usage no npm install needed!

<script type="module">
  import copyZipPlugin from 'https://cdn.skypack.dev/copy-zip-plugin';
</script>

README

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