Move lint logging to cli.js
authorNikolay Slyunkov <nslyunkov@contractor.ea.com>
Tue, 18 Nov 2014 12:41:23 +0000 (16:41 +0400)
committerNikolay Slyunkov <nslyunkov@contractor.ea.com>
Tue, 18 Nov 2014 12:41:23 +0000 (16:41 +0400)
cli.js
src/htmlminifier.js

diff --git a/cli.js b/cli.js
index 84a1fbe..5b5daad 100755 (executable)
--- 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 {
index 59d16a9..5889363 100644 (file)
       customAttrSurround: options.customAttrSurround
     });
 
-    lint && lint.populate();
     results.push.apply(results, buffer);
     var str = joinResultSegments(results, options);
     log('minified in: ' + (new Date() - t) + 'ms');