Skip to content

Commit 395df5f

Browse files
nlm-prokyliau
authored andcommitted
Docs: fix budgets story (#12585)
* docs: fix typo in budgets story * docs: add example in budgets story
1 parent ba2f3e2 commit 395df5f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/documentation/stories/budgets.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
As applications grow in functionality, they also grow in size. Budgets is a feature in the
44
Angular CLI which allows you to set budget thresholds in your configuration to ensure parts
5-
of your application stay within boundries which you set.
5+
of your application stay within boundaries which you set.
66

77
**angular.json**
88
```
@@ -60,3 +60,24 @@ Available formats:
6060

6161
All sizes are relative to baseline.
6262
Percentages are not valid for baseline values.
63+
64+
## Example
65+
66+
```
67+
{
68+
...
69+
"configurations": {
70+
"production": {
71+
...
72+
budgets: [
73+
{
74+
"type": "bundle",
75+
"name": "vendor",
76+
"minimumWarning": "300kb",
77+
"minimumError": "400kb",
78+
}
79+
]
80+
}
81+
}
82+
}
83+
```

0 commit comments

Comments
 (0)