Skip to content

Why Do Bundle Files Have Specific Size Limits in Bootstrap? #40891

Discussion options

You must be logged in to vote

I wasn’t part of the core team when it was initially implemented, but from my perspective, it serves as a security measure that gets checked for every PR. This not only helps prevent mistakes but also acts, for me personally, as a reminder that every addition comes with a cost and should be minimized, especially for eco-design reasons.

And if the file needs to get bigger in the future, what’s the best way to handle that?

If the file needs to grow, it should be a considered decision, but it’s not an issue. We can modify the limit in the same PR that updates or adds content. The rule is to increase the value by increments of 0.25.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MohamadSalman11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants