'use strict';

var minify = require('html-minifier').minify;
var merge = require('merge');

exports.name = 'html-minifier';
exports.inputFormats = ['htmlmin', 'html-minifier'];
exports.outputFormat = 'html';

exports.render = function (str, options, locals) {
  return minify(str, merge(options, locals));
};

'use strict';

var minify = require('html-minifier').minify;
var merge = require('merge');

exports.name = 'html-minifier';
exports.inputFormats = ['htmlmin', 'html-minifier', 'html'];
exports.outputFormat = 'html';

exports.render = function (str, options, locals) {
  return minify(str, merge(options, locals));
};

Add 'html' to HTML-Minifier `inputFormats`
Add 'html' to HTML-Minifier `inputFormats`

Allows HTML to be processed through the minifier.