const minify = require('html-minifier').minify

module.exports = function () {
  this.filter('htmlmin', (data, options = {}) => {
    return minify(data.toString(), options)
  })
}

const minify = require('html-minifier').minify

module.exports = function () {
  this.filter('htmlmin', (data, options) => {
    options = options || {}
    return minify(data.toString(), options)
  })
}

remove default param for node-harmony