Skip to content

Commit d9de319

Browse files
authored
Merge pull request #39 from ef4/fixes
[Fixes #38 #36] improve slow concat warning
2 parents 0415c7f + 587dba4 commit d9de319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ UglifyWriter.prototype.processFile = function(inFile, outFile, relativePath, out
127127
var total = end - start;
128128
debug('[finished]: %s %dKB in %dms', relativePath, (result.code.length / 1000), total);
129129

130-
if (total > 20000) {
131-
console.warn('[WARN] `' + relativePath + '` took: ' + total + 'ms (more than 20,000ms)');
130+
if (total > 20000 && process.argv.indexOf('--silent') === -1) {
131+
console.warn('[WARN] (broccoli-uglify-sourcemap) Minifying: `' + relativePath + '` took: ' + total + 'ms (more than 20,000ms)');
132132
}
133133

134134

0 commit comments

Comments
 (0)