Skip to content

Commit f6d56cc

Browse files
committed
fix: webpack release using production mode to reduce bundle size
1 parent 8a557fc commit f6d56cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@
5454
"electron-watch": "run-p gulp:watch cljs:electron-watch webpack-app-watch",
5555
"app-watch": "run-p gulp:watch cljs:app-watch webpack-app-watch",
5656
"mobile-watch": "run-p gulp:mobile-watch cljs:mobile-watch webpack-mobile-watch",
57-
"dev": "run-p gulp:watch gulp:mobile-watch cljs:dev-watch webpack",
57+
"dev": "run-p gulp:watch gulp:mobile-watch cljs:dev-watch webpack-watch",
5858
"release": "run-s gulp:build cljs:release webpack-app-build",
5959
"release-app": "run-s gulp:build cljs:release-app webpack-app-build",
6060
"release-mobile": "run-s gulp:buildMobile cljs:release-mobile webpack-mobile-build",
6161
"dev-release-app": "run-s gulp:build cljs:dev-release-app webpack-app-build",
6262
"dev-electron-app": "gulp electron",
6363
"release-electron": "run-s gulp:build && yarn webpack-app-build && gulp electronMaker",
6464
"debug-electron": "cd static/ && yarn electron:debug",
65-
"webpack": "webpack --watch",
65+
"webpack-watch": "webpack --watch",
6666
"webpack-app-watch": "npx webpack --watch --config-name app",
6767
"webpack-mobile-watch": "npx webpack --watch --config-name mobile",
68-
"webpack-app-build": "npx webpack build --config-name app",
69-
"webpack-mobile-build": "npx webpack build --config-name mobile",
68+
"webpack-app-build": "npx webpack build --mode production --config-name app",
69+
"webpack-mobile-build": "npx webpack build --mode production --config-name mobile",
7070
"sync-android-release": "yarn clean && yarn release-mobile && rm -rf ./static/mobile/**/*.map && npx cap sync android",
7171
"sync-ios-release": "yarn clean && yarn release-mobile && rm -rf ./static/mobile/**/*.map && npx cap sync ios",
7272
"clean": "gulp clean",

0 commit comments

Comments
 (0)