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"

 

posted @ 2021-11-16 17:32  全玉  阅读(280)  评论(0编辑  收藏  举报