diff --git a/angular.json b/angular.json index 99d1dd763..225f57c4b 100644 --- a/angular.json +++ b/angular.json @@ -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 } } }, diff --git a/package.json b/package.json index 83943642f..c8ffd55b1 100644 --- a/package.json +++ b/package.json @@ -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",