1.0.2 • Published 8 years ago

hexo-filter-htmlminifier v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hexo-filter-htmlminifier

Build Status

A Hexo filter to minify HTML files using HTML Minifier

Install

npm install hexo-filter-htmlminifier --save

Options

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.