Skip to content

Commit

Permalink
[Fixes #38 #36] improve slow concat warning
Browse files Browse the repository at this point in the history
* don’t show of `—silent` is used
* identify the current plugin when warning
  • Loading branch information
stefanpenner committed Dec 20, 2016
1 parent 0415c7f commit ea4e953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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) {
console.warn('[WARN] (broccoli-uglify-sourcemap) Minifying: `' + relativePath + '` took: ' + total + 'ms (more than 20,000ms)');
}


Expand Down

0 comments on commit ea4e953

Please sign in to comment.