Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit 5c219b1

Browse files
committed
Added cross-env to support NODE_ENV in other OS
1 parent 7da0b78 commit 5c219b1

File tree

2 files changed

+1206
-1136
lines changed

2 files changed

+1206
-1136
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"babel-loader": "^6.2.8",
1313
"babel-preset-es2015": "^6.18.0",
1414
"copy-webpack-plugin": "^4.0.1",
15+
"cross-env": "^5.0.1",
1516
"css-loader": "^0.26.1",
1617
"extract-text-webpack-plugin": "^2.1.0",
1718
"html-webpack-plugin": "^2.24.1",
@@ -28,6 +29,6 @@
2829
"scripts": {
2930
"start": "webpack-dev-server --hot --inline --open",
3031
"deploy": "npm run build && bash deploy.sh",
31-
"build": "NODE_ENV=production webpack -p --config webpack.config.js"
32+
"build": "cross-env NODE_ENV=production webpack -p --config webpack.config.js"
3233
}
3334
}

0 commit comments

Comments
 (0)