多条命令同时执行的包concurrently

npm i concurrently 

use 

"script":{

"client:build": "webpack --config build/webpack.client.js --watch",

"server:build": "webapck --config build/webpack.server.js --watch",

"all": "concurrent \"npm run client:build" \"npm run server:build" "

}

现在使用npm run all 就可以同时运行两个命令了

posted @ 2020-06-04 23:35  大桥默默学  阅读(252)  评论(0编辑  收藏  举报