1.0.2 • Published 9 years ago
hexo-filter-htmlminifier v1.0.2
hexo-filter-htmlminifier
A Hexo filter to minify HTML files using HTML Minifier
Install
npm install hexo-filter-htmlminifier --saveOptions
html_minifier:
  priority: 10000
  collapseWhitespace: true
  conservativeCollapse: false
  removeAttributeQuotes: true
  removeComments: true
  removeRedundantAttributes: true
  removeScriptTypeAttributes: true
  removeStyleLinkTypeAttributes: true- priority (optional): set the priority of the minify filter to make sure the task excute after other HTML filters. If you are using GZip filter (or some others) at the same time, you may need to change this value.
- for other optional, please see here.