Skip to content

Commit

Permalink
Merge pull request #39 from ef4/fixes
Browse files Browse the repository at this point in the history
[Fixes #38 #36] improve slow concat warning
  • Loading branch information
stefanpenner committed Dec 20, 2016
2 parents 0415c7f + 587dba4 commit d9de319
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 d9de319

Please sign in to comment.