1.0.1 • Published 5 years ago
copy-zip-plugin v1.0.1
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`
})
]
}