vue 项目中 启动一个命令 执行两行或多行命令
- 下载依赖
cnpm install -g concurrently
- package.json 文件配置
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"buildServer": "concurrently \"npm run serve\" \"npm run build\" "
}
vue 项目中 启动一个命令 执行两行或多行命令
cnpm install -g concurrently
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"buildServer": "concurrently \"npm run serve\" \"npm run build\" "
}