Minified browser code in the packaged final app. (#931)

- Also switched to minified `monaco` code,
- Removed dead code from the packaged.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
This commit is contained in:
Akos Kitta 2022-03-29 16:45:54 +01:00 committed by GitHub
parent 4de7737d14
commit 78004fa4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -20,8 +20,7 @@
"shelljs": "^0.8.3" "shelljs": "^0.8.3"
}, },
"scripts": { "scripts": {
"build": "yarn download:plugins && theia build --mode development && yarn patch", "build": "yarn download:plugins && theia build --mode production && yarn patch",
"build:publish": "yarn download:plugins && theia build --mode production && yarn patch",
"rebuild": "yarn theia rebuild:electron", "rebuild": "yarn theia rebuild:electron",
"package": "cross-env DEBUG=* && electron-builder --publish=never", "package": "cross-env DEBUG=* && electron-builder --publish=never",
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always", "package:publish": "cross-env DEBUG=* && electron-builder --publish=always",

View File

@ -227,8 +227,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
'Installing dependencies' 'Installing dependencies'
); );
exec( exec(
`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : '' `yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build`,
}`,
`Building the ${productName} application` `Building the ${productName} application`
); );
exec( exec(
@ -488,7 +487,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
)}.` )}.`
); );
shell.exit(1); shell.exit(1);
process.exit(1);
} }
if (expectedVersion) { if (expectedVersion) {
if (!versions.has(expectedVersion)) { if (!versions.has(expectedVersion)) {
@ -497,7 +495,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
}'.` }'.`
); );
shell.exit(1); shell.exit(1);
process.exit(1);
} }
} }
} }