Skip to content
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

Log and warn #12

Merged
merged 2 commits into from
Mar 8, 2016
Merged

Log and warn #12

merged 2 commits into from
Mar 8, 2016

Conversation

stefanpenner
Copy link
Collaborator

this warns after the build, which may not indicate why something is slow until too late.

It might be good to warn, before building. Maybe do to some file-size limit threshold. I am unclear what the threshold may be.

@SlexAxton ideas? If you have some, I would love a contribution to help improve this further.

@SlexAxton
Copy link

Thought it could maybe point someone in a direction to help fix the problem. Tried this: stefanpenner#1

@stefanpenner
Copy link
Collaborator Author

@SlexAxton i suspect we should add a config option to opt out of the warning...

@SlexAxton
Copy link

Agree. But I assume it'd need to be propagated from .ember-cli - is that an easy thing?

@stefanpenner
Copy link
Collaborator Author

Agree. But I assume it'd need to be propagated from .ember-cli - is that an easy thing?

two steps.

  1. this lib needs a option.disableSlowWarning (or something) <-- wanna handle this?
  2. ember-cli needs --flag (i can handle this)

* always debug log sizes + times DEBUG=broccoli* will reveal this.
* warn if the uglification took longer then 20,000ms
@stefanpenner
Copy link
Collaborator Author

@ef4 r?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants