|
18 | 18 | "prefix": "app", |
19 | 19 | "architect": { |
20 | 20 | "build": { |
21 | | - "builder": "@angular-devkit/build-angular:browser", |
| 21 | + "builder": "@angular-devkit/build-angular:application", |
22 | 22 | "options": { |
23 | 23 | "outputPath": "dist", |
24 | 24 | "index": "src/index.html", |
25 | | - "main": "src/main.ts", |
26 | | - "polyfills": "src/polyfills.ts", |
| 25 | + "browser": "src/main.ts", |
| 26 | + "polyfills": ["zone.js"], |
27 | 27 | "tsConfig": "tsconfig.app.json", |
28 | | - "assets": [ |
29 | | - "src/favicon.ico", |
30 | | - "src/assets" |
31 | | - ], |
32 | | - "styles": [ |
33 | | - "src/styles.scss" |
34 | | - ], |
35 | | - "scripts": [], |
36 | | - "vendorChunk": true, |
37 | | - "extractLicenses": false, |
38 | | - "buildOptimizer": false, |
39 | | - "sourceMap": true, |
40 | | - "optimization": false, |
41 | | - "namedChunks": true |
| 28 | + "assets": ["src/favicon.ico", "src/assets"], |
| 29 | + "styles": ["src/styles.scss"], |
| 30 | + "scripts": [] |
42 | 31 | }, |
43 | 32 | "configurations": { |
44 | 33 | "production": { |
45 | | - "fileReplacements": [ |
46 | | - { |
47 | | - "replace": "src/environments/environment.ts", |
48 | | - "with": "src/environments/environment.prod.ts" |
49 | | - } |
50 | | - ], |
51 | | - "optimization": { |
52 | | - "scripts": true, |
53 | | - "fonts": { |
54 | | - "inline": true |
55 | | - }, |
56 | | - "styles": { |
57 | | - "minify": true, |
58 | | - "inlineCritical": false |
59 | | - } |
60 | | - }, |
61 | | - "outputHashing": "all", |
62 | | - "sourceMap": false, |
63 | | - "namedChunks": false, |
64 | | - "extractLicenses": true, |
65 | | - "vendorChunk": false, |
66 | | - "buildOptimizer": true, |
67 | | - "budgets": [ |
68 | | - { |
69 | | - "type": "initial", |
70 | | - "maximumWarning": "500kb", |
71 | | - "maximumError": "1mb" |
72 | | - }, |
73 | | - { |
74 | | - "type": "anyComponentStyle", |
75 | | - "maximumWarning": "2kb", |
76 | | - "maximumError": "4kb" |
77 | | - } |
78 | | - ] |
| 34 | + "outputHashing": "all" |
| 35 | + }, |
| 36 | + "development": { |
| 37 | + "optimization": false, |
| 38 | + "extractLicenses": false, |
| 39 | + "sourceMap": true |
79 | 40 | } |
80 | | - } |
| 41 | + }, |
| 42 | + "defaultConfiguration": "production" |
81 | 43 | }, |
82 | 44 | "serve": { |
83 | 45 | "builder": "@angular-devkit/build-angular:dev-server", |
84 | 46 | "options": { |
85 | | - "browserTarget": "ngx-toastr:build" |
| 47 | + "buildTarget": "ngx-toastr:build" |
86 | 48 | }, |
87 | 49 | "configurations": { |
88 | 50 | "production": { |
89 | | - "browserTarget": "ngx-toastr:build:production" |
| 51 | + "buildTarget": "ngx-toastr:build:production" |
90 | 52 | } |
91 | 53 | } |
92 | 54 | }, |
93 | 55 | "extract-i18n": { |
94 | 56 | "builder": "@angular-devkit/build-angular:extract-i18n", |
95 | 57 | "options": { |
96 | | - "browserTarget": "ngx-toastr:build" |
| 58 | + "buildTarget": "ngx-toastr:build" |
97 | 59 | } |
98 | 60 | }, |
99 | 61 | "test": { |
100 | 62 | "builder": "@angular-devkit/build-angular:karma", |
101 | 63 | "options": { |
102 | | - "main": "src/test.ts", |
103 | | - "polyfills": "src/polyfills.ts", |
| 64 | + "polyfills": ["zone.js", "zone.js/testing"], |
104 | 65 | "tsConfig": "tsconfig.spec.json", |
105 | 66 | "karmaConfig": "karma.conf.js", |
106 | | - "assets": [ |
107 | | - "src/favicon.ico", |
108 | | - "src/assets" |
109 | | - ], |
110 | | - "styles": [ |
111 | | - "src/styles.scss" |
112 | | - ], |
| 67 | + "assets": ["src/favicon.ico", "src/assets"], |
| 68 | + "styles": ["src/styles.scss"], |
113 | 69 | "scripts": [] |
114 | 70 | } |
115 | 71 | }, |
116 | 72 | "lint": { |
117 | 73 | "builder": "@angular-eslint/builder:lint", |
118 | 74 | "options": { |
119 | | - "lintFilePatterns": [ |
120 | | - "src/**/*.ts", |
121 | | - "src/**/*.html" |
122 | | - ] |
| 75 | + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] |
123 | 76 | } |
124 | 77 | } |
125 | 78 | } |
|
0 commit comments