Skip to content

Commit 01e47f6

Browse files
committed
docs(examples/angular): Use new default application builder in Angular example
1 parent a776964 commit 01e47f6

File tree

5 files changed

+7
-74
lines changed

5 files changed

+7
-74
lines changed

examples/angular/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ COPY ./default-config.yaml /config/default.yaml
1313
# Usually we would mount this file at runtime, but we will add it to the image for demo purposes.
1414
COPY ./runtime-config.yaml /config/config.yaml
1515

16-
COPY --from=build /src/dist/angular-example/ /app/
16+
COPY --from=build /src/dist/angular-example/browser/ /app/

examples/angular/angular.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
"prefix": "app",
2020
"architect": {
2121
"build": {
22-
"builder": "@angular-devkit/build-angular:browser",
22+
"builder": "@angular-devkit/build-angular:application",
2323
"options": {
2424
"outputPath": "dist/angular-example",
2525
"index": "src/index.html",
26-
"main": "src/main.ts",
27-
"polyfills": "src/polyfills.ts",
26+
"browser": "src/main.ts",
27+
"polyfills": ["zone.js"],
2828
"tsConfig": "tsconfig.app.json",
2929
"aot": true,
3030
"assets": [
@@ -51,8 +51,6 @@
5151
"sourceMap": false,
5252
"namedChunks": false,
5353
"extractLicenses": true,
54-
"vendorChunk": false,
55-
"buildOptimizer": true,
5654
"budgets": [
5755
{
5856
"type": "initial",
@@ -90,7 +88,7 @@
9088
"builder": "@angular-devkit/build-angular:karma",
9189
"options": {
9290
"main": "src/test.ts",
93-
"polyfills": "src/polyfills.ts",
91+
"polyfills": ["zone.js", "zone.js/testing"],
9492
"tsConfig": "tsconfig.spec.json",
9593
"karmaConfig": "karma.conf.js",
9694
"assets": [

examples/angular/src/polyfills.ts

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

examples/angular/tsconfig.app.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"types": []
66
},
77
"files": [
8-
"src/main.ts",
9-
"src/polyfills.ts"
8+
"src/main.ts"
109
],
1110
"include": [
1211
"src/**/*.d.ts"

examples/angular/tsconfig.spec.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
]
99
},
1010
"files": [
11-
"src/test.ts",
12-
"src/polyfills.ts"
11+
"src/test.ts"
1312
],
1413
"include": [
1514
"src/**/*.spec.ts",

0 commit comments

Comments
 (0)