Skip to content

Commit ebe525e

Browse files
committed
@angular/cli migration - update-angular-config-v12
Remove deprecated options from 'angular.json' that are no longer present in v12.
1 parent cd51850 commit ebe525e

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

angular.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"main": "src/main.ts",
2626
"polyfills": "src/polyfills.ts",
2727
"tsConfig": "tsconfig.app.json",
28-
"aot": true,
2928
"assets": [
3029
"src/favicon.ico",
3130
"src/assets"
@@ -41,7 +40,13 @@
4140
},
4241
"src/styles.scss"
4342
],
44-
"scripts": []
43+
"scripts": [],
44+
"vendorChunk": true,
45+
"extractLicenses": false,
46+
"buildOptimizer": false,
47+
"sourceMap": true,
48+
"optimization": false,
49+
"namedChunks": true
4550
},
4651
"configurations": {
4752
"production": {
@@ -71,7 +76,8 @@
7176
}
7277
]
7378
}
74-
}
79+
},
80+
"defaultConfiguration": ""
7581
},
7682
"serve": {
7783
"builder": "@angular-devkit/build-angular:dev-server",
@@ -139,7 +145,9 @@
139145
"options": {
140146
"outputPath": "dist/localize/server",
141147
"main": "server.ts",
142-
"tsConfig": "tsconfig.server.json"
148+
"tsConfig": "tsconfig.server.json",
149+
"sourceMap": true,
150+
"optimization": false
143151
},
144152
"configurations": {
145153
"production": {
@@ -153,7 +161,8 @@
153161
"sourceMap": false,
154162
"optimization": true
155163
}
156-
}
164+
},
165+
"defaultConfiguration": ""
157166
},
158167
"serve-ssr": {
159168
"builder": "@nguniversal/builders:ssr-dev-server",

0 commit comments

Comments
 (0)