"devDependencies": {
"zip-webpack-plugin": "^4.0.1"
},
plugins: [
// 压缩 zip文件
new ZipPlugin({
// path: './', //路径名
path: 'zip',
filename: 'dist.zip' //打包名
})
]
"devDependencies": {
"copy-webpack-plugin": "^6.0.3"
},
plugins: [
new CopyWebpackPlugin({
patterns: [{
from: path.join(__dirname,'../public'),
to: 'public',
globOptions: {
ignore: [
'**/.*'
]
}
}]
})
]