These are chat archives for QingWei-Li/cooking

23rd
Mar 2017
hujing
@rainwalkerhu
Mar 23 2017 04:46
大家好 。我有两个配置文件 这是我package.json文件的配置、"scripts": {
"dev": "cooking watch -c ./cooking.conf.js",
"dist": "cooking build -p",
"deploy": "cooking build -c ./src/config/cooking.config.prod.js --no-color",
"mock": "./node_modules/.bin/json-server --watch mock/db.json --routes mock/routes.json --port 9090",
"mockdev": "npm run mock & npm run dev"
},
现在的问题是执行完npm run deploy 后npm run dev
报错
请问怎么配置两个配置文件 。一个开发环境一个生产环境