hexo-filter-htmlminifier
A Hexo filter to minify HTML files using HTML Minifier
Install
npm install hexo-filter-htmlminifier --save
Options
html_minifier:priority: 10000collapseWhitespace: trueconservativeCollapse: falseremoveAttributeQuotes: trueremoveComments: trueremoveRedundantAttributes: trueremoveScriptTypeAttributes: trueremoveStyleLinkTypeAttributes: 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.