Skip to content

Commit 25a1fae

Browse files
committed
ng build warning fix | redundant assets removed
1 parent 04e46e5 commit 25a1fae

4 files changed

Lines changed: 16 additions & 32 deletions

File tree

MangoAPI.Client/angular.json

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@
5858
"with": "src/environments/environment.prod.ts"
5959
}
6060
],
61-
"outputHashing": "all"
61+
"outputHashing": "all",
62+
"optimization": {
63+
"scripts": true,
64+
"styles": {
65+
"minify": true,
66+
"inlineCritical": false
67+
},
68+
"fonts": true
69+
}
6270
},
6371
"development": {
6472
"fileReplacements": [
@@ -67,34 +75,14 @@
6775
"with": "src/environments/environment.ts"
6876
}
6977
],
70-
"optimization": true,
71-
"outputHashing": "all",
72-
"sourceMap": false,
73-
"namedChunks": false,
74-
"extractLicenses": true,
75-
"vendorChunk": false,
76-
"buildOptimizer": true,
77-
"budgets": [
78-
{
79-
"type": "initial",
80-
"maximumWarning": "2mb",
81-
"maximumError": "5mb"
78+
"optimization": {
79+
"scripts": true,
80+
"styles": {
81+
"minify": true,
82+
"inlineCritical": false
8283
},
83-
{
84-
"type": "anyComponentStyle",
85-
"maximumWarning": "2kb",
86-
"maximumError": "4kb"
87-
}
88-
]
89-
},
90-
"docker": {
91-
"fileReplacements": [
92-
{
93-
"replace": "src/environments/environment.ts",
94-
"with": "src/environments/environment.docker.ts"
95-
}
96-
],
97-
"optimization": true,
84+
"fonts": true
85+
},
9886
"outputHashing": "all",
9987
"sourceMap": false,
10088
"namedChunks": false,
-6.52 KB
Binary file not shown.
-15.2 KB
Binary file not shown.

MangoAPI.Client/src/environments/environment.docker.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)