feat(performancebudgets): set warnings in console off by default - #3604
Conversation
…ever should still display in stats
SpaceK33z
left a comment
There was a problem hiding this comment.
Seems like a good idea.
Reviewing the feedback, I understand and support this decision. Let's start thinking about how we might go about detecting environments better so there's a real chance this can be switched back on as a default for folks - @TheLarkInn is there an issue already open for discussing ideas? |
|
Not yet, let's get one on the docket and I'll.drop it into our feature milestone |
…ever should still display in stats (webpack#3604)
|
Glad to see this was turned off. With an empty bundle & So, I think we'd need to account for a few things:
|
What kind of change does this PR introduce?
Feature/Bugfix
Did you add tests for your changes?
Updated existing tests to meet changes needs.
If relevant, link to documentation update:
Will need to create issue.
Summary
Performance Hint warnings and errors will be now opt-in. However, the
[big]entity will now show by default. Currently there is no way in webpack to discern one env from another for developers, therefore its too difficult to control or determine what env a user might be in and when to intelligently display perf hints.As much as an organization we want to do our part and encourage users to be aware of the sizes of their web application bundles that they are emitting, the feedback that we have gotten is that for this to be a opt-out, it needs to have more intelligent env understandings, as well as calculating gzip and minified sizes during dev env vs prod.
It's better to instead have this opt-in for now, and for webpack v2.4-3+ to add more intelligent features that allow this to be turned back to an opt-out feature (which is end goal).
Addresses concerns from #3485 and comments later in #3216.
Does this PR introduce a breaking change?
No
Other information
Will need to update Documentation to state that perf.hints is now
falseby default.