diff --git a/index.js b/index.js index e2e23be..33e3897 100644 --- a/index.js +++ b/index.js @@ -116,8 +116,6 @@ UglifyWriter.prototype.processFile = function(inFile, outFile, relativePath, out var result = UglifyJS.minify(src, options); var end = new Date(); var total = end - start; - debug('[finished]: %s %dKB in %dms', relativePath, (result.code.length / 1000), total); - if (total > 20000 && !silent) { console.warn('[WARN] (broccoli-uglify-sourcemap) Minifying: `' + relativePath + '` took: ' + total + 'ms (more than 20,000ms)'); } @@ -127,6 +125,8 @@ UglifyWriter.prototype.processFile = function(inFile, outFile, relativePath, out throw result.error; } + debug('[finished]: %s %dKB in %dms', relativePath, (result.code.length / 1000), total); + if (options.sourceMap) { var newSourceMap = JSON.parse(result.map);