hexo-filter-htmlminifier
v1.0.2
Published
A Hexo plugin to minify output HTML files with HTML Minifier
Downloads
7
Readme
hexo-filter-htmlminifier
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.