When building my Angular 9.1.3 project with --prod, I receive a warning in budgets.
WARNING in buckets, maximum exceeded error occurs.
It's part of the original anlar.json
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
The problem has been resolved by modifying this part.
"budgets": [
{
"type": "initial",
"maximumWarning": "20mb",
"maximumError": "20mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "200kb",
"maximumError": "200kb"
}
]
But I wonder if it's okay to suddenly increase the maximum warning capacity like this.
I can't find this part even if I look at the angular official document, so if anyone knows about this issue, I'd appreciate it if you could help me.
It's part of the original anlar.json
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
The problem has been resolved by modifying this part.
"budgets": [
{
"type": "initial",
"maximumWarning": "20mb",
"maximumError": "20mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "200kb",
"maximumError": "200kb"
}
]