Skip to content

Commit bd0c13d

Browse files
committed
build: new angular builder
1 parent 3a44f2c commit bd0c13d

File tree

10 files changed

+599
-6095
lines changed

10 files changed

+599
-6095
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ COPY --chown=101:101 ./etc/nginx /etc/nginx
99

1010
COPY --chown=101:101 ./robots /usr/share/nginx/html/robots
1111

12-
COPY --chown=101:101 ./dist/ /usr/share/nginx/html/
12+
COPY --chown=101:101 ./dist/browser/ /usr/share/nginx/html/

angular.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@
5353
},
5454
"architect": {
5555
"build": {
56-
"builder": "@angular-devkit/build-angular:browser",
56+
"builder": "@angular/build:application",
5757
"options": {
58-
"outputPath": "dist",
58+
"outputPath": {
59+
"base": "dist"
60+
},
5961
"index": "src/index.html",
60-
"main": "src/main.ts",
6162
"tsConfig": "src/tsconfig.app.json",
62-
"polyfills": "src/polyfills.ts",
63+
"polyfills": [
64+
"src/polyfills.ts"
65+
],
6366
"allowedCommonJsDependencies": [
6467
"jquery",
6568
"sprintf-js",
@@ -112,7 +115,8 @@
112115
"es-ES",
113116
"it",
114117
"he"
115-
]
118+
],
119+
"browser": "src/main.ts"
116120
},
117121
"configurations": {
118122
"serve": {
@@ -121,8 +125,6 @@
121125
"namedChunks": false,
122126
"aot": true,
123127
"extractLicenses": false,
124-
"vendorChunk": false,
125-
"buildOptimizer": false,
126128
"fileReplacements": [
127129
{
128130
"replace": "src/environments/environment.ts",
@@ -140,8 +142,6 @@
140142
"namedChunks": false,
141143
"aot": true,
142144
"extractLicenses": false,
143-
"vendorChunk": false,
144-
"buildOptimizer": false,
145145
"fileReplacements": [
146146
{
147147
"replace": "src/environments/environment.ts",
@@ -156,8 +156,6 @@
156156
"namedChunks": false,
157157
"aot": true,
158158
"extractLicenses": true,
159-
"vendorChunk": false,
160-
"buildOptimizer": true,
161159
"fileReplacements": [
162160
{
163161
"replace": "src/environments/environment.ts",
@@ -168,7 +166,7 @@
168166
}
169167
},
170168
"serve": {
171-
"builder": "@angular-devkit/build-angular:dev-server",
169+
"builder": "@angular/build:dev-server",
172170
"options": {
173171
"browserTarget": "wheelsage:build"
174172
},
@@ -179,7 +177,7 @@
179177
}
180178
},
181179
"extract-i18n": {
182-
"builder": "@angular-devkit/build-angular:extract-i18n",
180+
"builder": "@angular/build:extract-i18n",
183181
"options": {
184182
"buildTarget": "wheelsage:build"
185183
}

0 commit comments

Comments
 (0)