aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-15 19:25:15 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-15 19:25:15 +0800
commit29be4a60afc5cc31a1b3ebfc2a005a6716a3817e (patch)
tree4478c2efc584478fb5a9a8bb7193979c3395e228 /package.json
parent5deeca4b68ad62e93c24a422b0d182e788cab1d7 (diff)
downloaddexon-sol-tools-29be4a60afc5cc31a1b3ebfc2a005a6716a3817e.tar.gz
dexon-sol-tools-29be4a60afc5cc31a1b3ebfc2a005a6716a3817e.tar.zst
dexon-sol-tools-29be4a60afc5cc31a1b3ebfc2a005a6716a3817e.zip
Set NODE_ENV to production for production builds and don't rely on webpack minification (we use uglifyJS)
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index b20a7b698..d08456f22 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"clean": "shx rm -rf _bundles lib test_temp",
"build:dev": "npm run clean && run-p build:*:dev",
"build:umd:dev": "webpack",
- "build:umd:prod": "webpack -p",
+ "build:umd:prod": "NODE_ENV=production webpack",
"build:commonjs:dev": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;",
"test:commonjs": "run-s build:commonjs:dev run_mocha",
"pretest:umd": "run-s clean build:*:dev",