1.0.2 • Published 4 years ago
webpack-plugin-zipball v1.0.2
Introduction
A webpack plug-in for handling output directory compression files
install
With npm do:
npm install webpack-plugin-zipball
useage
Here's an example webpack config illustrating how to use these options:
// webpack.config.js
const Zip=require('webpack-plugin-zipball');
{
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
new Zip({
customPath: 'app-1.0.0.zip',
removeOutputFile: true
})
]
}
options
customPath: Name of your zip file, default ->app-1.0.0.zip, type{stirng} removeOutputFile:Whether to delete the output directory,default ->true, type{boolean}
license
MIT