|
17 | 17 | "build": {
|
18 | 18 | "builder": "@angular-devkit/build-angular:browser",
|
19 | 19 | "options": {
|
20 |
| - "outputPath": "dist/my-app", |
| 20 | + "outputPath": "dist/my-app/browser", |
21 | 21 | "index": "src/index.html",
|
22 | 22 | "main": "src/main.ts",
|
23 | 23 | "polyfills": "src/polyfills.ts",
|
|
98 | 98 | ],
|
99 | 99 | "scripts": []
|
100 | 100 | }
|
| 101 | + }, |
| 102 | + "server": { |
| 103 | + "builder": "@angular-devkit/build-angular:server", |
| 104 | + "options": { |
| 105 | + "outputPath": "dist/my-app/server", |
| 106 | + "main": "server.ts", |
| 107 | + "tsConfig": "tsconfig.server.json" |
| 108 | + }, |
| 109 | + "configurations": { |
| 110 | + "production": { |
| 111 | + "outputHashing": "media", |
| 112 | + "fileReplacements": [ |
| 113 | + { |
| 114 | + "replace": "src/environments/environment.ts", |
| 115 | + "with": "src/environments/environment.prod.ts" |
| 116 | + } |
| 117 | + ] |
| 118 | + }, |
| 119 | + "development": { |
| 120 | + "optimization": false, |
| 121 | + "sourceMap": true, |
| 122 | + "extractLicenses": false |
| 123 | + } |
| 124 | + }, |
| 125 | + "defaultConfiguration": "production" |
| 126 | + }, |
| 127 | + "serve-ssr": { |
| 128 | + "builder": "@nguniversal/builders:ssr-dev-server", |
| 129 | + "configurations": { |
| 130 | + "development": { |
| 131 | + "browserTarget": "my-app:build:development", |
| 132 | + "serverTarget": "my-app:server:development" |
| 133 | + }, |
| 134 | + "production": { |
| 135 | + "browserTarget": "my-app:build:production", |
| 136 | + "serverTarget": "my-app:server:production" |
| 137 | + } |
| 138 | + }, |
| 139 | + "defaultConfiguration": "development" |
| 140 | + }, |
| 141 | + "prerender": { |
| 142 | + "builder": "@nguniversal/builders:prerender", |
| 143 | + "options": { |
| 144 | + "routes": [ |
| 145 | + "/" |
| 146 | + ] |
| 147 | + }, |
| 148 | + "configurations": { |
| 149 | + "production": { |
| 150 | + "browserTarget": "my-app:build:production", |
| 151 | + "serverTarget": "my-app:server:production" |
| 152 | + }, |
| 153 | + "development": { |
| 154 | + "browserTarget": "my-app:build:development", |
| 155 | + "serverTarget": "my-app:server:development" |
| 156 | + } |
| 157 | + }, |
| 158 | + "defaultConfiguration": "production" |
101 | 159 | }
|
102 | 160 | }
|
103 | 161 | }
|
|
0 commit comments