webpack-zip
v1.2.3
Published
it is a simple webpcak plugin for zip bundle folder to designation path
Downloads
4
Readme
webpack-zip
it is a simple webpcak plugin for zip bundle folder to designation path
(用于将webpack输出文件夹打包为zip压缩包,并输送到指定目录下的插件,也可以单纯作为文件夹传输插件)
Instructions
npm i webpack-zip
var zip = require('webpack-zip');
...
plugins: [
new zip()
]
Options
name
the output file name .default:distdestPath
the designation path .default:Root directorynoZip
if this is true will not zip file only transfer to the specified path .default:falsehandleError
the function for handling errorshandSuccess
the function for handling success
new zip(
{
destPath:'//path',
name:'dist',
handleError:(e)=>{},
handSuccess:()=>{}
}
)