|
17 | 17 | "build": {
|
18 | 18 | "builder": "@angular-devkit/build-angular:browser",
|
19 | 19 | "options": {
|
20 |
| - "outputPath": "dist/ref-err-reproduction", |
| 20 | + "outputPath": "dist/ref-err-reproduction/browser", |
21 | 21 | "index": "src/index.html",
|
22 | 22 | "main": "src/main.ts",
|
23 | 23 | "polyfills": "src/polyfills.ts",
|
|
121 | 121 | "devServerTarget": "ref-err-reproduction:serve:production"
|
122 | 122 | }
|
123 | 123 | }
|
| 124 | + }, |
| 125 | + "server": { |
| 126 | + "builder": "@angular-devkit/build-angular:server", |
| 127 | + "options": { |
| 128 | + "outputPath": "dist/ref-err-reproduction/server", |
| 129 | + "main": "server.ts", |
| 130 | + "tsConfig": "tsconfig.server.json" |
| 131 | + }, |
| 132 | + "configurations": { |
| 133 | + "production": { |
| 134 | + "outputHashing": "media", |
| 135 | + "fileReplacements": [ |
| 136 | + { |
| 137 | + "replace": "src/environments/environment.ts", |
| 138 | + "with": "src/environments/environment.prod.ts" |
| 139 | + } |
| 140 | + ], |
| 141 | + "sourceMap": false, |
| 142 | + "optimization": true |
| 143 | + } |
| 144 | + } |
| 145 | + }, |
| 146 | + "serve-ssr": { |
| 147 | + "builder": "@nguniversal/builders:ssr-dev-server", |
| 148 | + "options": { |
| 149 | + "browserTarget": "ref-err-reproduction:build", |
| 150 | + "serverTarget": "ref-err-reproduction:server" |
| 151 | + }, |
| 152 | + "configurations": { |
| 153 | + "production": { |
| 154 | + "browserTarget": "ref-err-reproduction:build:production", |
| 155 | + "serverTarget": "ref-err-reproduction:server:production" |
| 156 | + } |
| 157 | + } |
| 158 | + }, |
| 159 | + "prerender": { |
| 160 | + "builder": "@nguniversal/builders:prerender", |
| 161 | + "options": { |
| 162 | + "browserTarget": "ref-err-reproduction:build:production", |
| 163 | + "serverTarget": "ref-err-reproduction:server:production", |
| 164 | + "routes": [ |
| 165 | + "/" |
| 166 | + ] |
| 167 | + }, |
| 168 | + "configurations": { |
| 169 | + "production": {} |
| 170 | + } |
124 | 171 | }
|
125 | 172 | }
|
126 | 173 | },
|
|
178 | 225 | "build": {
|
179 | 226 | "builder": "@angular-devkit/build-angular:browser",
|
180 | 227 | "options": {
|
181 |
| - "outputPath": "dist/my-app", |
| 228 | + "outputPath": "dist/my-app/browser", |
182 | 229 | "index": "projects/my-app/src/index.html",
|
183 | 230 | "main": "projects/my-app/src/main.ts",
|
184 | 231 | "polyfills": "projects/my-app/src/polyfills.ts",
|
|
282 | 329 | "devServerTarget": "my-app:serve:production"
|
283 | 330 | }
|
284 | 331 | }
|
| 332 | + }, |
| 333 | + "server": { |
| 334 | + "builder": "@angular-devkit/build-angular:server", |
| 335 | + "options": { |
| 336 | + "outputPath": "dist/my-app/server", |
| 337 | + "main": "projects/my-app/server.ts", |
| 338 | + "tsConfig": "projects/my-app/tsconfig.server.json" |
| 339 | + }, |
| 340 | + "configurations": { |
| 341 | + "production": { |
| 342 | + "outputHashing": "media", |
| 343 | + "fileReplacements": [ |
| 344 | + { |
| 345 | + "replace": "projects/my-app/src/environments/environment.ts", |
| 346 | + "with": "projects/my-app/src/environments/environment.prod.ts" |
| 347 | + } |
| 348 | + ], |
| 349 | + "sourceMap": false, |
| 350 | + "optimization": true |
| 351 | + } |
| 352 | + } |
| 353 | + }, |
| 354 | + "serve-ssr": { |
| 355 | + "builder": "@nguniversal/builders:ssr-dev-server", |
| 356 | + "options": { |
| 357 | + "browserTarget": "my-app:build", |
| 358 | + "serverTarget": "my-app:server" |
| 359 | + }, |
| 360 | + "configurations": { |
| 361 | + "production": { |
| 362 | + "browserTarget": "my-app:build:production", |
| 363 | + "serverTarget": "my-app:server:production" |
| 364 | + } |
| 365 | + } |
| 366 | + }, |
| 367 | + "prerender": { |
| 368 | + "builder": "@nguniversal/builders:prerender", |
| 369 | + "options": { |
| 370 | + "browserTarget": "my-app:build:production", |
| 371 | + "serverTarget": "my-app:server:production", |
| 372 | + "routes": [ |
| 373 | + "/" |
| 374 | + ] |
| 375 | + }, |
| 376 | + "configurations": { |
| 377 | + "production": {} |
| 378 | + } |
285 | 379 | }
|
286 | 380 | }
|
287 | 381 | }},
|
|
0 commit comments