Change bundle limits and build script

This commit is contained in:
Rubikscraft
2022-12-27 16:56:59 +01:00
parent 5a6a366f9d
commit 40bd2349a3
5 changed files with 160 additions and 16 deletions

View File

@@ -21,7 +21,7 @@
"sourceRoot": "src",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
@@ -42,18 +42,22 @@
"allowedCommonJsDependencies": [
"ngx-auto-unsubscribe-decorator",
"moment",
"platform"
"platform",
"form-data"
],
"optimization": true,
"webWorkerTsConfig": "tsconfig.worker.json"
"webWorkerTsConfig": "tsconfig.worker.json",
"customWebpackConfig": {
"path": "./custom-webpack.config.js"
}
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "1mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",