Skip to content

Commit 437e3b5

Browse files
committed
@angular/cli migration - update-server-builder-config
Update the '@angular-devkit/build-angular:server' builder configuration to disable 'buildOptimizer' for non optimized builds.
1 parent 76dc165 commit 437e3b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

angular.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
"main": "server.ts",
122122
"tsConfig": "tsconfig.server.json",
123123
"sourceMap": true,
124-
"optimization": false
124+
"optimization": false,
125+
"buildOptimizer": false
125126
},
126127
"configurations": {
127128
"production": {
@@ -133,7 +134,8 @@
133134
}
134135
],
135136
"sourceMap": false,
136-
"optimization": true
137+
"optimization": true,
138+
"buildOptimizer": true
137139
}
138140
},
139141
"defaultConfiguration": ""

0 commit comments

Comments
 (0)