npm编译文件自动打开文件目录并压缩命令

mac

"build": "npm run test:build && cd ../web && open . && (rm -rf static.zip || true) && zip -q -r static.zip static"

windows

"build": "npm run test:build && cd ../web && start . && (rm -rf static.zip || true) && zip -q -r static.zip static"
原文地址:https://www.cnblogs.com/mengff/p/15562413.html