Skip to content

feat(@angular/cli): Allow ability to set budget sizes for your bundles #7458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Aug 21, 2017

Closes #7139

"budgets": {
"description": "Defines the budget allotments for bundles.",
"type": "array",
"items": {"type": "object",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split in 2 lines.

"type": "string"
},
"budget": {
"description": "Threshold to measure against. (in kb)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have a string or number, and string can contain g M or k or whatever.

@@ -192,6 +192,22 @@
"description": "Name and corresponding file for environment config.",
"type": "object",
"additionalProperties": true
},
"budgets": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this scheme, how do I specify the error/warning levels? How do I specify my budget for initial vs total?

Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good to have a proof of concept, but we should design this feature and discuss it around a document tomorrow at the meeting. Do you have such a dcoument?

@Brocco
Copy link
Contributor Author

Brocco commented Jan 23, 2018

This PR is the original version of the already merged #8939, closing.

@Brocco Brocco closed this Jan 23, 2018
@Brocco Brocco deleted the bundle-budgets branch April 3, 2018 13:13
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting of budget of bundle sizes
3 participants