increase angular size budget

This commit is contained in:
2025-11-19 11:33:59 +01:00
parent cdf45876be
commit 1ef223c199

View File

@@ -31,9 +31,7 @@
"builder": "@angular/build:application", "builder": "@angular/build:application",
"options": { "options": {
"browser": "src/main.ts", "browser": "src/main.ts",
"polyfills": [ "polyfills": ["zone.js"],
"zone.js"
],
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "css", "inlineStyleLanguage": "css",
"assets": [ "assets": [
@@ -47,23 +45,20 @@
"output": "assets" "output": "assets"
} }
], ],
"styles": [ "styles": ["src/custom-theme.scss", "src/styles.css"]
"src/custom-theme.scss",
"src/styles.css"
]
}, },
"configurations": { "configurations": {
"production": { "production": {
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
"maximumWarning": "500kB", "maximumWarning": "5MB",
"maximumError": "1MB" "maximumError": "10MB"
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "4kB", "maximumWarning": "100kB",
"maximumError": "8kB" "maximumError": "500kB"
} }
], ],
"outputHashing": "all" "outputHashing": "all"
@@ -94,10 +89,7 @@
"test": { "test": {
"builder": "@angular/build:karma", "builder": "@angular/build:karma",
"options": { "options": {
"polyfills": [ "polyfills": ["zone.js", "zone.js/testing"],
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json", "tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "css", "inlineStyleLanguage": "css",
"assets": [ "assets": [
@@ -106,9 +98,7 @@
"input": "public" "input": "public"
} }
], ],
"styles": [ "styles": ["src/styles.css"]
"src/styles.css"
]
} }
} }
} }