【VUE】npm打包前自动拉取代码,打包后自动压缩ZIP
# pacakge.json
使用360压缩,安装后要将软件路径加入环境变量
"prebuild": "git pull",
"build": "vue-cli-service build",
"postbuild": "360zip -ar .\\dist\\ %cd%\\dist.zip",
使用360压缩,安装后要将软件路径加入环境变量
"prebuild": "git pull",
"build": "vue-cli-service build",
"postbuild": "360zip -ar .\\dist\\ %cd%\\dist.zip",