Skip to content

Commit d0d8409

Browse files
committed
Build the release bundle in production mode on every OS and compress it.
1 parent 6fb8058 commit d0d8409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "mocha",
88
"build": "browserify -t babelify ./src/main/js/index.js -o ./src/main/resources/explorer/assets/bundle.js && sbt assembly",
99
"watch": "watchify -t babelify ./src/main/js/index.js -o ./src/main/resources/explorer/assets/bundle.js",
10-
"release": "set NODE_ENV=production && browserify ./src/main/js/index.js -t babelify -t envify | uglifyjs > ./src/main/resources/explorer/assets/bundle.js && sbt clean assembly"
10+
"release": "browserify ./src/main/js/index.js -t babelify -g [ envify --NODE_ENV production ] | uglifyjs -c -m > ./src/main/resources/explorer/assets/bundle.js && sbt clean assembly"
1111
},
1212
"author": "tomoki1207",
1313
"license": "MIT",

0 commit comments

Comments
 (0)