html-minifier

html-minifier can compress only HTML files.

https://github.com/kangax/html-minifier

Usage

compressor.minify({
  compressor: 'html-minifier',
  input: 'foo.html',
  output: 'bar.html',
  callback: function(err, min) {}
});

Options

compressor.minify({
  compressor: 'html-minifier',
  input: 'foo.html',
  output: 'bar.html',
  options: {
    removeAttributeQuotes: true
  },
  callback: function(err, min) {}
});

Check all options