Pass NODE_ENV=production to electron build (#4352)

This commit is contained in:
Jaco Greeff 2021-01-09 13:34:42 +01:00 committed by GitHub
parent 74f929c48c
commit a6b697447d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,9 @@
"build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && yarn webpack --config webpack.config.js",
"build:electron": "yarn clean:electronBuild && yarn build:electronMain && yarn build:electronRenderer",
"build:devElectronRenderer": "cd packages/apps-electron && yarn webpack --config webpack.renderer.js",
"build:electronRenderer": "cd packages/apps-electron && yarn webpack --config webpack.renderer.js",
"build:electronRenderer": "cd packages/apps-electron && NODE_ENV=production yarn webpack --config webpack.renderer.js",
"build:devElectronMain": "cd packages/apps-electron && yarn webpack --config webpack.main.js",
"build:electronMain": "cd packages/apps-electron && yarn webpack --config webpack.main.js",
"build:electronMain": "cd packages/apps-electron && NODE_ENV=production yarn webpack --config webpack.main.js",
"packElectron:test": "yarn build:release:electron && electron-builder --dir",
"packElectron:mac": "yarn build:release:electron && electron-builder build --mac",
"packElectron:win": "yarn build:release:electron && electron-builder build --win",