Skip to content

Commit 0f90e86

Browse files
committed
build: Update to Angular 12
1 parent bc174f5 commit 0f90e86

File tree

16 files changed

+9492
-21471
lines changed

16 files changed

+9492
-21471
lines changed

angular.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
},
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-ng-packagr:build",
18+
"builder": "@angular-devkit/build-angular:ng-packagr",
1919
"options": {
2020
"tsConfig": "projects/ngx-metrika/tsconfig.lib.json",
2121
"project": "projects/ngx-metrika/ng-package.json"
22+
},
23+
"configurations": {
24+
"production": {
25+
"tsConfig": "projects/ngx-metrika/tsconfig.lib.prod.json"
26+
}
2227
}
2328
},
2429
"test": {
@@ -62,15 +67,20 @@
6267
"main": "projects/ngx-metrika-app/src/main.ts",
6368
"polyfills": "projects/ngx-metrika-app/src/polyfills.ts",
6469
"tsConfig": "projects/ngx-metrika-app/tsconfig.app.json",
65-
"aot": false,
6670
"assets": [
6771
"projects/ngx-metrika-app/src/favicon.ico",
6872
"projects/ngx-metrika-app/src/assets"
6973
],
7074
"styles": [
7175
"projects/ngx-metrika-app/src/styles.scss"
7276
],
73-
"scripts": []
77+
"scripts": [],
78+
"vendorChunk": true,
79+
"extractLicenses": false,
80+
"buildOptimizer": false,
81+
"sourceMap": true,
82+
"optimization": false,
83+
"namedChunks": true
7484
},
7585
"configurations": {
7686
"production": {
@@ -83,9 +93,7 @@
8393
"optimization": true,
8494
"outputHashing": "all",
8595
"sourceMap": false,
86-
"extractCss": true,
8796
"namedChunks": false,
88-
"aot": true,
8997
"extractLicenses": true,
9098
"vendorChunk": false,
9199
"buildOptimizer": true,
@@ -94,6 +102,10 @@
94102
"type": "initial",
95103
"maximumWarning": "2mb",
96104
"maximumError": "5mb"
105+
},
106+
{
107+
"type": "anyComponentStyle",
108+
"maximumWarning": "6kb"
97109
}
98110
]
99111
}
@@ -161,5 +173,8 @@
161173
}
162174
}
163175
},
164-
"defaultProject": "ngx-metrika-app"
165-
}
176+
"defaultProject": "ngx-metrika-app",
177+
"cli": {
178+
"analytics": "a406fc73-39f8-4f9d-b4a2-c47a90e4b7fc"
179+
}
180+
}

0 commit comments

Comments
 (0)