|
105 | 105 | "maximumError": "300kb" |
106 | 106 | } |
107 | 107 | ] |
| 108 | + }, |
| 109 | + "production-e2e": { |
| 110 | + "fileReplacements": [ |
| 111 | + { |
| 112 | + "replace": "src/environments/environment.ts", |
| 113 | + "with": "src/environments/environment.production-e2e.ts" |
| 114 | + }, |
| 115 | + { |
| 116 | + "replace": "src/config/store/devtools.ts", |
| 117 | + "with": "src/config/store/devtools.prod.ts" |
| 118 | + } |
| 119 | + ], |
| 120 | + "optimization": true, |
| 121 | + "outputHashing": "all", |
| 122 | + "namedChunks": false, |
| 123 | + "aot": true, |
| 124 | + "extractLicenses": true, |
| 125 | + "vendorChunk": false, |
| 126 | + "buildOptimizer": true, |
| 127 | + "budgets": [ |
| 128 | + { |
| 129 | + "type": "initial", |
| 130 | + "maximumWarning": "3mb", |
| 131 | + "maximumError": "5mb" |
| 132 | + }, |
| 133 | + { |
| 134 | + "type": "anyComponentStyle", |
| 135 | + "maximumWarning": "200kb", |
| 136 | + "maximumError": "300kb" |
| 137 | + } |
| 138 | + ] |
108 | 139 | } |
109 | 140 | } |
110 | 141 | }, |
|
120 | 151 | }, |
121 | 152 | "production": { |
122 | 153 | "buildTarget": "dspace-angular:build:production" |
| 154 | + }, |
| 155 | + "production-e2e": { |
| 156 | + "buildTarget": "dspace-angular:build:production-e2e" |
123 | 157 | } |
124 | 158 | } |
125 | 159 | }, |
|
181 | 215 | "configurations": { |
182 | 216 | "production": { |
183 | 217 | "devServerTarget": "dspace-angular:serve:production" |
| 218 | + }, |
| 219 | + "production-e2e": { |
| 220 | + "devServerTarget": "dspace-angular:serve:production-e2e" |
184 | 221 | } |
185 | 222 | } |
186 | 223 | }, |
|
215 | 252 | "with": "src/config/store/devtools.prod.ts" |
216 | 253 | } |
217 | 254 | ] |
| 255 | + }, |
| 256 | + "production-e2e": { |
| 257 | + "sourceMap": false, |
| 258 | + "optimization": true, |
| 259 | + "fileReplacements": [ |
| 260 | + { |
| 261 | + "replace": "src/environments/environment.ts", |
| 262 | + "with": "src/environments/environment.production-e2e.ts" |
| 263 | + }, |
| 264 | + { |
| 265 | + "replace": "src/config/store/devtools.ts", |
| 266 | + "with": "src/config/store/devtools.prod.ts" |
| 267 | + } |
| 268 | + ] |
218 | 269 | } |
219 | 270 | } |
220 | 271 | }, |
|
229 | 280 | "production": { |
230 | 281 | "buildTarget": "dspace-angular:build:production", |
231 | 282 | "serverTarget": "dspace-angular:server:production" |
| 283 | + }, |
| 284 | + "production-e2e": { |
| 285 | + "buildTarget": "dspace-angular:build:production-e2e", |
| 286 | + "serverTarget": "dspace-angular:server:production-e2e" |
232 | 287 | } |
233 | 288 | } |
234 | 289 | }, |
|
242 | 297 | ] |
243 | 298 | }, |
244 | 299 | "configurations": { |
245 | | - "production": {} |
| 300 | + "production": {}, |
| 301 | + "production-e2e": {} |
246 | 302 | } |
247 | 303 | }, |
248 | 304 | "cypress-run": { |
|
253 | 309 | "configurations": { |
254 | 310 | "production": { |
255 | 311 | "devServerTarget": "dspace-angular:serve:production" |
| 312 | + }, |
| 313 | + "production-e2e": { |
| 314 | + "devServerTarget": "dspace-angular:serve:production-e2e" |
256 | 315 | } |
257 | 316 | } |
258 | 317 | }, |
|
0 commit comments