Use cross-env to set NODE_ENV

This commit is contained in:
An Phan 2016-01-19 16:56:54 +08:00
parent c017a8dab6
commit 855750a239

View file

@ -24,6 +24,7 @@
"bower": "^1.7.0",
"browserify-hmr": "^0.3.1",
"chai": "^3.4.1",
"cross-env": "^1.0.7",
"gulp": "^3.9.0",
"gulp-util": "^3.0.7",
"ismobilejs": "^0.3.9",
@ -43,7 +44,7 @@
"vueify-insert-css": "^1.0.0"
},
"scripts": {
"postinstall": "node node_modules/bower/bin/bower install && NODE_ENV=production && gulp --production",
"postinstall": "bower install && cross-env NODE_ENV=production && gulp --production",
"test": "mocha --compilers js:babel-register resources/assets/js/tests/**/*Test.js"
}
}