Skip to content

Commit fce5b4d

Browse files
committed
Enable Webpack production mode for start:js:prod
The (rarely used) `start:js:prod` script for running production mode locally failed to set Webpack into production mode, so things like minification would be skipped.
1 parent c0a148c commit fce5b4d

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
@@ -49,7 +49,7 @@
4949
"electron": "yarn install:electron && electron .",
5050
"start:res": "node scripts/copy-res.js -w",
5151
"start:js": "webpack-dev-server --host=0.0.0.0 --output-filename=bundles/_dev_/[name].js --output-chunk-filename=bundles/_dev_/[name].js -w --progress --mode development",
52-
"start:js:prod": "cross-env NODE_ENV=production webpack-dev-server -w --progress",
52+
"start:js:prod": "cross-env NODE_ENV=production webpack-dev-server -w --progress --mode production",
5353
"start:js-sdk": "node scripts/yarn-sub.js matrix-js-sdk start:watch",
5454
"start:js-sdk:prod": "cross-env NODE_ENV=production node scripts/yarn-sub.js matrix-js-sdk start:watch",
5555
"start:react-sdk": "node scripts/yarn-sub.js matrix-react-sdk start:all",

0 commit comments

Comments
 (0)