Skip to content

Commit 9c5058e

Browse files
nlm-proKeen Yee Liau
authored andcommitted
Docs: fix budgets story (angular#12585)
* docs: fix typo in budgets story * docs: add example in budgets story
1 parent e897b39 commit 9c5058e

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
@@ -4,7 +4,7 @@
44

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

99
**angular.json**
1010
```
@@ -62,3 +62,24 @@ Available formats:
6262

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

0 commit comments

Comments
 (0)