build: add stageWeb target

This commit is contained in:
Johannes Millan 2020-10-04 15:54:19 +02:00
parent 4a8d4428ed
commit c3f5b18535
2 changed files with 25 additions and 0 deletions

View file

@ -116,6 +116,30 @@
"vendorChunk": false,
"buildOptimizer": true,
"serviceWorker": false
},
"stageWeb": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"serviceWorker": true
}
}
},

View file

@ -25,6 +25,7 @@
"buildFrontend:prod": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --aot --prod",
"buildFrontend:prodWeb": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --aot --prod --configuration productionWeb",
"buildFrontend:stage": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --aot --prod --configuration stage",
"buildFrontend:stageWeb": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --aot --prod --configuration stageWeb",
"buildFrontend:prod:watch": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --aot --prod --watch",
"buildAllElectron:prod": "yarn preCheck && yarn buildFrontend:prod && yarn electron:build",
"buildAllElectron:stage": "yarn preCheck && yarn buildFrontend:stage && yarn electron:build",