Skip to content

Commit 34484e5

Browse files
committed
chore(build): set production environment
build:min is not setting production environment.
1 parent 90abd7d commit 34484e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "npm run build:lib && npm run build:min && npm run build:max",
88
"build:lib": "rm -rf lib && babel src --out-dir lib",
9-
"build:min": "webpack --optimize-minimize lib/index.js dist/ng-redux.min.js",
9+
"build:min": "webpack --optimize-minimize --define process.env.NODE_ENV=\"'production'\" lib/index.js dist/ng-redux.min.js",
1010
"build:max": "webpack lib/index.js dist/ng-redux.js",
1111
"test": "mocha --compilers js:babel-register --recursive"
1212
},

0 commit comments

Comments
 (0)