前端之家收集整理的这篇文章主要介绍了
package.json,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
{
"devDependencies": {
"better-npm-run": "~0.0.1"
},"scripts": {
"build:dist": "better-npm-run build:dist","build:prod": "better-npm-run build:prod","test": "better-npm-run test"
},"betterScripts": {
"build:dist": "webpack --config $npm_package_webpack --progress --colors","build:prod": {
"command": "webpack --config $npm_package_webpack --progress --colors","env": {
"NODE_ENV": "production"
}
},"test": {
"command": "karma start","env": {
"NODE_ENV": "test"
}
}
}
}