nodejs npm run build 打包压缩zip文件
步骤1:安装npm install archiver -D步骤2: 根目录下新建zip.js,内容如下const fs = require('fs')const archiver = require('archiver')// 创建文件输出流let output = fs.createWriteStream(__dirname + '/dist.zip')let archive = archiver('zip', { zlib: { level: 9 } // 设置压缩级别})/