Closed mrbone closed 6 years ago
类似 build:task1
, build:task2
这种脚本组合,用原生的 npm script 需要使用如下命令:
npm run build:task1 && npm run build:task2
如果使用 npm-run-all
:
npm-run-all build:*
并行任务可以使用 run-p build:*
或者 npm-run-all --parallel build:*
run-s build:*
或者 npm-run-all --serial build:*
build:task1 build:task2
npm run build 时的机制和运行顺序。