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

[Fixes #38 #36] improve slow concat warning #39

Merged
merged 1 commit into from Dec 20, 2016
Merged

[Fixes #38 #36] improve slow concat warning #39

merged 1 commit into from Dec 20, 2016

Conversation

stefanpenner
Copy link
Collaborator

  • don’t show of —silent is used
  • identify the current plugin when warning

@@ -127,8 +127,8 @@ UglifyWriter.prototype.processFile = function(inFile, outFile, relativePath, out
var total = end - start;
debug('[finished]: %s %dKB in %dms', relativePath, (result.code.length / 1000), total);

if (total > 20000) {
console.warn('[WARN] `' + relativePath + '` took: ' + total + 'ms (more than 20,000ms)');
if (total > 20000 && process.argv.indexOf('--silent') > -1) {
Copy link
Member

@rwjblue rwjblue Dec 20, 2016

Choose a reason for hiding this comment

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

Shouldn't this be === -1? (meaning we only print if we don't find --silent)

* don’t show of `—silent` is used
* identify the current plugin when warning
@stefanpenner stefanpenner merged commit d9de319 into master Dec 20, 2016
@stefanpenner stefanpenner deleted the fixes branch December 20, 2016 21:13
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.

None yet

3 participants