📜  如何并行运行多个 npm 脚本 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:04.893000             🧑  作者: Mango

代码示例1
If you're using an UNIX-like environment, just use & as the separator:

"dev": "npm run start-watch & npm run wp-server"
Otherwise if you're interested on a cross-platform solution, you could use npm-run-all module:

"dev": "npm-run-all --parallel start-watch wp-server"