From: Nikolay Slyunkov Date: Tue, 18 Nov 2014 12:41:23 +0000 (+0400) Subject: Move lint logging to cli.js X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=26465821e048b2e629bed2b53429a9793edca981;p=html-minifier.git Move lint logging to cli.js --- diff --git a/cli.js b/cli.js index 84a1fbe..5b5daad 100755 --- a/cli.js +++ b/cli.js @@ -222,6 +222,8 @@ cli.main(function(args, options) { process.stderr.write('Error: Minification error'); } + minifyOptions.lint && minifyOptions.lint.populate(); + if (minified !== null) { // Write the output try { diff --git a/src/htmlminifier.js b/src/htmlminifier.js index 59d16a9..5889363 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -711,7 +711,6 @@ customAttrSurround: options.customAttrSurround }); - lint && lint.populate(); results.push.apply(results, buffer); var str = joinResultSegments(results, options); log('minified in: ' + (new Date() - t) + 'ms');