Skip to content

Commit d9321c3

Browse files
docs: switch to esbuild and sync project.json with latest one
1 parent b741c7d commit d9321c3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

projects/example-app/project.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"generators": {},
88
"targets": {
99
"build": {
10-
"executor": "@angular-devkit/build-angular:browser",
10+
"executor": "@angular-devkit/build-angular:application",
1111
"options": {
1212
"outputPath": "dist/projects/example-app",
1313
"index": "projects/example-app/src/index.html",
14-
"main": "projects/example-app/src/main.ts",
15-
"polyfills": "projects/example-app/src/polyfills.ts",
14+
"browser": "projects/example-app/src/main.ts",
15+
"polyfills": ["zone.js"],
1616
"tsConfig": "projects/example-app/tsconfig.app.json",
1717
"assets": [
1818
"projects/example-app/src/favicon.ico",
@@ -24,20 +24,23 @@
2424
"configurations": {
2525
"production": {
2626
"budgets": [
27+
{
28+
"type": "initial",
29+
"maximumWarning": "500kb",
30+
"maximumError": "1mb"
31+
},
2732
{
2833
"type": "anyComponentStyle",
29-
"maximumWarning": "6kb"
34+
"maximumWarning": "2kb",
35+
"maximumError": "4kb"
3036
}
3137
],
3238
"outputHashing": "all"
3339
},
3440
"development": {
35-
"buildOptimizer": false,
3641
"optimization": false,
37-
"vendorChunk": true,
3842
"extractLicenses": false,
39-
"sourceMap": true,
40-
"namedChunks": true
43+
"sourceMap": true
4144
}
4245
},
4346
"defaultConfiguration": "production",

0 commit comments

Comments
 (0)