|
5 | 5 | "projects": {
|
6 | 6 | "ngx-pdf-viewer": {
|
7 | 7 | "projectType": "application",
|
8 |
| - "schematics": { |
9 |
| - "@schematics/angular:application": { |
10 |
| - "strict": true |
11 |
| - } |
12 |
| - }, |
| 8 | + "schematics": {}, |
13 | 9 | "root": "",
|
14 | 10 | "sourceRoot": "src",
|
15 | 11 | "prefix": "app",
|
16 | 12 | "architect": {
|
17 | 13 | "build": {
|
18 |
| - "builder": "@angular-devkit/build-angular:browser", |
| 14 | + "builder": "@angular-devkit/build-angular:application", |
19 | 15 | "options": {
|
20 | 16 | "outputPath": "dist/ngx-pdf-viewer",
|
21 | 17 | "index": "src/index.html",
|
22 |
| - "main": "src/main.ts", |
23 |
| - "polyfills": "src/polyfills.ts", |
| 18 | + "browser": "src/main.ts", |
| 19 | + "polyfills": ["zone.js"], |
24 | 20 | "tsConfig": "tsconfig.app.json",
|
25 | 21 | "assets": [
|
26 | 22 | "src/favicon.ico",
|
|
39 | 35 | "budgets": [
|
40 | 36 | {
|
41 | 37 | "type": "initial",
|
42 |
| - "maximumWarning": "500kb", |
43 |
| - "maximumError": "1mb" |
| 38 | + "maximumWarning": "500kB", |
| 39 | + "maximumError": "1MB" |
44 | 40 | },
|
45 | 41 | {
|
46 | 42 | "type": "anyComponentStyle",
|
47 |
| - "maximumWarning": "2kb", |
48 |
| - "maximumError": "4kb" |
49 |
| - } |
50 |
| - ], |
51 |
| - "fileReplacements": [ |
52 |
| - { |
53 |
| - "replace": "src/environments/environment.ts", |
54 |
| - "with": "src/environments/environment.prod.ts" |
| 43 | + "maximumWarning": "2kB", |
| 44 | + "maximumError": "4kB" |
55 | 45 | }
|
56 | 46 | ],
|
57 | 47 | "outputHashing": "all"
|
58 | 48 | },
|
59 | 49 | "development": {
|
60 |
| - "buildOptimizer": false, |
61 | 50 | "optimization": false,
|
62 |
| - "vendorChunk": true, |
63 | 51 | "extractLicenses": false,
|
64 |
| - "sourceMap": true, |
65 |
| - "namedChunks": true |
| 52 | + "sourceMap": true |
66 | 53 | }
|
67 | 54 | },
|
68 | 55 | "defaultConfiguration": "production"
|
|
71 | 58 | "builder": "@angular-devkit/build-angular:dev-server",
|
72 | 59 | "configurations": {
|
73 | 60 | "production": {
|
74 |
| - "browserTarget": "ngx-pdf-viewer:build:production" |
| 61 | + "buildTarget": "ngx-pdf-viewer:build:production" |
75 | 62 | },
|
76 | 63 | "development": {
|
77 |
| - "browserTarget": "ngx-pdf-viewer:build:development" |
| 64 | + "buildTarget": "ngx-pdf-viewer:build:development" |
78 | 65 | }
|
79 | 66 | },
|
80 | 67 | "defaultConfiguration": "development"
|
81 | 68 | },
|
82 | 69 | "extract-i18n": {
|
83 |
| - "builder": "@angular-devkit/build-angular:extract-i18n", |
84 |
| - "options": { |
85 |
| - "browserTarget": "ngx-pdf-viewer:build" |
86 |
| - } |
| 70 | + "builder": "@angular-devkit/build-angular:extract-i18n" |
87 | 71 | },
|
88 | 72 | "test": {
|
89 | 73 | "builder": "@angular-devkit/build-angular:karma",
|
90 | 74 | "options": {
|
91 |
| - "main": "src/test.ts", |
92 |
| - "polyfills": "src/polyfills.ts", |
| 75 | + "polyfills": ["zone.js", "zone.js/testing"], |
93 | 76 | "tsConfig": "tsconfig.spec.json",
|
94 |
| - "karmaConfig": "karma.conf.js", |
95 |
| - "assets": ["src/favicon.ico", "src/assets"], |
| 77 | + "assets": [ |
| 78 | + { |
| 79 | + "glob": "**/*", |
| 80 | + "input": "public" |
| 81 | + } |
| 82 | + ], |
96 | 83 | "styles": ["src/styles.css"],
|
97 | 84 | "scripts": []
|
98 | 85 | }
|
99 | 86 | }
|
100 | 87 | }
|
101 | 88 | }
|
102 |
| - }, |
103 |
| - "defaultProject": "ngx-pdf-viewer" |
| 89 | + } |
104 | 90 | }
|
0 commit comments