12
12
"build" : {
13
13
"builder" : " @angular-devkit/build-angular:ng-packagr" ,
14
14
"options" : {
15
- "tsConfig" : " projects/ng-toggle/tsconfig.lib.json" ,
16
15
"project" : " projects/ng-toggle/ng-package.json"
17
- }
16
+ },
17
+ "configurations" : {
18
+ "production" : {
19
+ "tsConfig" : " projects/ng-toggle/tsconfig.lib.prod.json"
20
+ },
21
+ "development" : {
22
+ "tsConfig" : " projects/ng-toggle/tsconfig.lib.json"
23
+ }
24
+ },
25
+ "defaultConfiguration" : " production"
18
26
},
19
27
"test" : {
20
28
"builder" : " @angular-devkit/build-angular:karma" ,
36
44
"prefix" : " app" ,
37
45
"architect" : {
38
46
"build" : {
39
- "builder" : " @angular-devkit/build-angular:browser " ,
47
+ "builder" : " @angular-devkit/build-angular:application " ,
40
48
"options" : {
41
49
"outputPath" : " dist/demo" ,
42
50
"index" : " projects/demo/src/index.html" ,
43
- "main " : " projects/demo/src/main.ts" ,
51
+ "browser " : " projects/demo/src/main.ts" ,
44
52
"polyfills" : [
45
53
" zone.js"
46
54
],
47
55
"tsConfig" : " projects/demo/tsconfig.app.json" ,
48
- "aot" : false ,
49
56
"assets" : [
50
- " projects/demo/src/favicon.ico" ,
51
- " projects/demo/src/assets"
57
+ {
58
+ "glob" : " **/*" ,
59
+ "input" : " projects/demo/public"
60
+ }
52
61
],
53
62
"styles" : [
54
63
" projects/demo/src/styles.css"
55
64
],
56
- "scripts" : [],
57
- "vendorChunk" : true ,
58
- "extractLicenses" : false ,
59
- "buildOptimizer" : false ,
60
- "sourceMap" : true ,
61
- "optimization" : false ,
62
- "namedChunks" : true
65
+ "scripts" : []
63
66
},
64
67
"configurations" : {
65
68
"production" : {
66
- "fileReplacements" : [
67
- {
68
- "replace" : " projects/demo/src/environments/environment.ts" ,
69
- "with" : " projects/demo/src/environments/environment.prod.ts"
70
- }
71
- ],
72
- "optimization" : true ,
73
- "outputHashing" : " all" ,
74
- "sourceMap" : false ,
75
- "namedChunks" : false ,
76
- "aot" : true ,
77
- "extractLicenses" : true ,
78
- "vendorChunk" : false ,
79
- "buildOptimizer" : true ,
80
69
"budgets" : [
81
70
{
82
71
"type" : " initial" ,
83
- "maximumWarning" : " 2mb" ,
84
- "maximumError" : " 5mb"
72
+ "maximumWarning" : " 500kB" ,
73
+ "maximumError" : " 1MB"
74
+ },
75
+ {
76
+ "type" : " anyComponentStyle" ,
77
+ "maximumWarning" : " 2kB" ,
78
+ "maximumError" : " 4kB"
85
79
}
86
- ]
80
+ ],
81
+ "outputHashing" : " all"
82
+ },
83
+ "development" : {
84
+ "optimization" : false ,
85
+ "extractLicenses" : false ,
86
+ "sourceMap" : true
87
87
}
88
88
},
89
- "defaultConfiguration" : " "
89
+ "defaultConfiguration" : " production "
90
90
},
91
91
"serve" : {
92
92
"builder" : " @angular-devkit/build-angular:dev-server" ,
93
- "options" : {
94
- "buildTarget" : " demo:build"
95
- },
96
93
"configurations" : {
97
94
"production" : {
98
95
"buildTarget" : " demo:build:production"
96
+ },
97
+ "development" : {
98
+ "buildTarget" : " demo:build:development"
99
99
}
100
- }
100
+ },
101
+ "defaultConfiguration" : " development"
101
102
},
102
103
"extract-i18n" : {
103
- "builder" : " @angular-devkit/build-angular:extract-i18n" ,
104
- "options" : {
105
- "buildTarget" : " demo:build"
106
- }
104
+ "builder" : " @angular-devkit/build-angular:extract-i18n"
107
105
},
108
106
"test" : {
109
107
"builder" : " @angular-devkit/build-angular:karma" ,
110
108
"options" : {
111
- "main" : " projects/demo/src/test.ts" ,
112
109
"polyfills" : [
113
110
" zone.js" ,
114
111
" zone.js/testing"
115
112
],
116
113
"tsConfig" : " projects/demo/tsconfig.spec.json" ,
117
114
"assets" : [
118
- " projects/demo/src/favicon.ico" ,
119
- " projects/demo/src/assets"
115
+ {
116
+ "glob" : " **/*" ,
117
+ "input" : " projects/demo/public"
118
+ }
120
119
],
121
120
"styles" : [
122
121
" projects/demo/src/styles.css"
127
126
}
128
127
}
129
128
}
130
- }
129
+ }
0 commit comments