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