多条命令同时执行的包concurrently

不知道该写啥QAQ 2020-06-05

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 就可以同时运行两个命令了

相关推荐