/ / package file
if (config.build.outputZip) {
var ZipPlugin=require ("zip-webpack-plugin")
webpackConfig.plugins.push (
new ZipPlugin({
path:config.build.assetsRoot,
filename:"output.zip"
})
)
}
error message
compiler.hooks.emit.tapAsync(ZipPlugin.name, function(compilation, callback) {
^
TypeError: Cannot read property "emit" of undefined