|
1 | 1 | { |
2 | | - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
| 2 | + "$schema": "./node_modules/@cli/lib/config/schema.json", |
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | | - "angular-chrome-extension": { |
7 | | - "root": "angular", |
8 | | - "sourceRoot": "angular/src", |
| 6 | + "angular-mist-extension": { |
| 7 | + "root": "", |
| 8 | + "sourceRoot": "src", |
9 | 9 | "projectType": "application", |
10 | 10 | "prefix": "app", |
11 | 11 | "schematics": { |
12 | 12 | "@schematics/angular:component": { |
13 | 13 | "style": "sass" |
| 14 | + }, |
| 15 | + "@schematics/angular:application": { |
| 16 | + "strict": true |
14 | 17 | } |
15 | 18 | }, |
16 | 19 | "architect": { |
17 | 20 | "build": { |
18 | | - "builder": "ngx-build-plus:browser", |
| 21 | + "builder": "@angular-builders/custom-webpack:browser", |
19 | 22 | "options": { |
20 | 23 | "aot": true, |
21 | | - "outputPath": "angular/dist", |
22 | | - "index": "angular/src/index.html", |
23 | | - "main": "angular/src/main.ts", |
24 | | - "polyfills": "angular/src/polyfills.ts", |
25 | | - "tsConfig": "angular/src/tsconfig.app.json", |
| 24 | + "outputPath": "dist", |
| 25 | + "index": "src/index.html", |
| 26 | + "main": "src/main.ts", |
| 27 | + "polyfills": "src/polyfills.ts", |
| 28 | + "tsConfig": "src/tsconfig.app.json", |
26 | 29 | "assets": [ |
27 | | - "angular/src/manifest.json", |
28 | | - "angular/src/assets" |
| 30 | + "src/manifest.json", |
| 31 | + "src/assets" |
29 | 32 | ], |
30 | 33 | "styles": [ |
31 | | - "angular/src/styles.scss" |
| 34 | + "src/styles.scss" |
32 | 35 | ], |
33 | | - "scripts": [] |
| 36 | + "scripts": [], |
| 37 | + "vendorChunk": true, |
| 38 | + "extractLicenses": false, |
| 39 | + "buildOptimizer": false, |
| 40 | + "sourceMap": true, |
| 41 | + "optimization": false, |
| 42 | + "namedChunks": true |
34 | 43 | }, |
35 | 44 | "configurations": { |
36 | 45 | "production": { |
37 | 46 | "fileReplacements": [{ |
38 | | - "replace": "angular/src/environments/environment.ts", |
39 | | - "with": "angular/src/environments/environment.prod.ts" |
| 47 | + "replace": "src/environments/environment.ts", |
| 48 | + "with": "src/environments/environment.prod.ts" |
40 | 49 | }], |
41 | | - "optimization": true, |
42 | | - "outputHashing": "all", |
43 | | - "sourceMap": false, |
44 | | - "namedChunks": false, |
45 | | - "aot": true, |
46 | | - "extractLicenses": true, |
47 | | - "vendorChunk": false, |
48 | | - "buildOptimizer": true, |
49 | 50 | "budgets": [{ |
50 | 51 | "type": "initial", |
51 | 52 | "maximumWarning": "2mb", |
|
55 | 56 | "type": "anyComponentStyle", |
56 | 57 | "maximumWarning": "6kb" |
57 | 58 | } |
58 | | - ] |
| 59 | + ], |
| 60 | + "optimization": { |
| 61 | + "scripts": true, |
| 62 | + "styles": { |
| 63 | + "minify": true, |
| 64 | + "inlineCritical": false |
| 65 | + }, |
| 66 | + "fonts": true |
| 67 | + }, |
| 68 | + "outputHashing": "all", |
| 69 | + "sourceMap": false, |
| 70 | + "namedChunks": false, |
| 71 | + "extractLicenses": true, |
| 72 | + "vendorChunk": false, |
| 73 | + "buildOptimizer": true |
59 | 74 | } |
60 | 75 | } |
61 | 76 | }, |
62 | 77 | "serve": { |
63 | | - "builder": "ngx-build-plus:dev-server", |
| 78 | + "builder": "@angular-devkit/build-angular:dev-server", |
64 | 79 | "options": { |
65 | | - "browserTarget": "angular-chrome-extension:build" |
| 80 | + "browserTarget": "angular-mist-extension:build" |
66 | 81 | }, |
67 | 82 | "configurations": { |
68 | 83 | "production": { |
69 | | - "browserTarget": "angular-chrome-extension:build:production" |
| 84 | + "browserTarget": "angular-mist-extension:build:production" |
70 | 85 | } |
71 | 86 | } |
72 | 87 | }, |
73 | 88 | "extract-i18n": { |
74 | 89 | "builder": "@angular-devkit/build-angular:extract-i18n", |
75 | 90 | "options": { |
76 | | - "browserTarget": "angular-chrome-extension:build" |
| 91 | + "browserTarget": "angular-mist-extension:build" |
77 | 92 | } |
78 | 93 | }, |
79 | 94 | "lint": { |
80 | 95 | "builder": "@angular-devkit/build-angular:tslint", |
81 | 96 | "options": { |
82 | 97 | "tsConfig": [ |
83 | | - "angular/src/tsconfig.app.json" |
| 98 | + "src/tsconfig.app.json" |
84 | 99 | ], |
85 | | - "exclude": [ |
86 | | - "**/node_modules/**" |
87 | | - ] |
| 100 | + "exclude": [] |
88 | 101 | } |
89 | 102 | } |
90 | 103 | } |
91 | 104 | } |
92 | 105 | }, |
93 | | - "defaultProject": "angular-chrome-extension", |
94 | 106 | "cli": { |
95 | 107 | "analytics": false |
96 | 108 | } |
|
0 commit comments