|
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | | - "demo-app-angular": { |
| 6 | + "angular": { |
7 | 7 | "projectType": "application", |
8 | 8 | "schematics": { |
9 | 9 | "@schematics/angular:component": { |
10 | | - "style": "scss" |
| 10 | + "skipTests": true, |
| 11 | + "changeDetection": "OnPush", |
| 12 | + "displayBlock": true |
11 | 13 | } |
12 | 14 | }, |
13 | 15 | "root": "", |
14 | 16 | "sourceRoot": "src", |
15 | 17 | "prefix": "app", |
16 | 18 | "architect": { |
17 | 19 | "build": { |
18 | | - "builder": "@angular-devkit/build-angular:browser", |
| 20 | + "builder": "@angular/build:application", |
19 | 21 | "options": { |
20 | | - "outputPath": "dist/demo-app-angular", |
21 | | - "index": "src/index.html", |
22 | | - "main": "src/main.ts", |
23 | | - "polyfills": ["zone.js"], |
| 22 | + "browser": "src/main.ts", |
24 | 23 | "tsConfig": "tsconfig.app.json", |
25 | | - "inlineStyleLanguage": "scss", |
26 | | - "assets": ["src/favicon.ico", "src/assets"], |
27 | | - "styles": ["src/styles.scss"], |
28 | | - "scripts": [] |
| 24 | + "assets": [ |
| 25 | + { |
| 26 | + "glob": "**/*", |
| 27 | + "input": "public" |
| 28 | + } |
| 29 | + ], |
| 30 | + "styles": ["src/styles.css"] |
29 | 31 | }, |
30 | 32 | "configurations": { |
31 | 33 | "production": { |
32 | 34 | "budgets": [ |
33 | 35 | { |
34 | 36 | "type": "initial", |
35 | | - "maximumWarning": "500kb", |
36 | | - "maximumError": "1mb" |
| 37 | + "maximumWarning": "500kB", |
| 38 | + "maximumError": "1MB" |
37 | 39 | }, |
38 | 40 | { |
39 | 41 | "type": "anyComponentStyle", |
40 | | - "maximumWarning": "2kb", |
41 | | - "maximumError": "4kb" |
| 42 | + "maximumWarning": "4kB", |
| 43 | + "maximumError": "8kB" |
42 | 44 | } |
43 | 45 | ], |
44 | 46 | "outputHashing": "all" |
45 | 47 | }, |
46 | 48 | "development": { |
47 | | - "buildOptimizer": false, |
48 | 49 | "optimization": false, |
49 | | - "vendorChunk": true, |
50 | 50 | "extractLicenses": false, |
51 | | - "sourceMap": true, |
52 | | - "namedChunks": true |
| 51 | + "sourceMap": true |
53 | 52 | } |
54 | 53 | }, |
55 | 54 | "defaultConfiguration": "production" |
56 | 55 | }, |
57 | 56 | "serve": { |
58 | | - "builder": "@angular-devkit/build-angular:dev-server", |
| 57 | + "builder": "@angular/build:dev-server", |
59 | 58 | "configurations": { |
60 | 59 | "production": { |
61 | | - "browserTarget": "demo-app-angular:build:production" |
| 60 | + "buildTarget": "angular:build:production" |
62 | 61 | }, |
63 | 62 | "development": { |
64 | | - "browserTarget": "demo-app-angular:build:development" |
| 63 | + "buildTarget": "angular:build:development" |
65 | 64 | } |
66 | 65 | }, |
67 | 66 | "defaultConfiguration": "development" |
68 | | - }, |
69 | | - "extract-i18n": { |
70 | | - "builder": "@angular-devkit/build-angular:extract-i18n", |
71 | | - "options": { |
72 | | - "browserTarget": "demo-app-angular:build" |
73 | | - } |
74 | | - }, |
75 | | - "test": { |
76 | | - "builder": "@angular-devkit/build-angular:karma", |
77 | | - "options": { |
78 | | - "polyfills": ["zone.js", "zone.js/testing"], |
79 | | - "tsConfig": "tsconfig.spec.json", |
80 | | - "inlineStyleLanguage": "scss", |
81 | | - "assets": ["src/favicon.ico", "src/assets"], |
82 | | - "styles": ["src/styles.scss"], |
83 | | - "scripts": [] |
84 | | - } |
85 | 67 | } |
86 | 68 | } |
87 | 69 | } |
88 | | - }, |
89 | | - "cli": { |
90 | | - "analytics": false, |
91 | | - "cache": { |
92 | | - "enabled": false |
93 | | - } |
94 | 70 | } |
95 | 71 | } |
0 commit comments