Skip to content

Commit 2fdb8a9

Browse files
committed
fix: style loading issues on build
angular/angular-cli#20864
1 parent fc30108 commit 2fdb8a9

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

angular.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@
5353
"with": "src/environments/environment.prod.ts"
5454
}
5555
],
56-
"optimization": true,
56+
"optimization": {
57+
"scripts": true,
58+
"styles": {
59+
"minify": true,
60+
"inlineCritical": false
61+
},
62+
"fonts": true
63+
},
5764
"outputHashing": "all",
5865
"sourceMap": false,
5966
"namedChunks": false,
@@ -117,7 +124,14 @@
117124
"with": "src/environments/environment.prod.ts"
118125
}
119126
],
120-
"optimization": true,
127+
"optimization": {
128+
"scripts": true,
129+
"styles": {
130+
"minify": true,
131+
"inlineCritical": false
132+
},
133+
"fonts": true
134+
},
121135
"outputHashing": "all",
122136
"sourceMap": false,
123137
"namedChunks": false,

0 commit comments

Comments
 (0)