hexo-htmlnano
v0.0.3
Published
Minify HTML files in Hexo with htmlnano.
Downloads
6
Maintainers
Readme
hexo-htmlnano
Minify HTML files in Hexo with htmlnano.
Installation
$ npm install hexo-htmlnano --save
Options
You can set options of htmlnano in the main _config.yml
file:
htmlnano:
exclude:
- exclude: Exclude files from being minified. Support globbing patterns.
Default options:
htmlnano:
exclude:
collapseBooleanAttributes:
collapseWhitespace: conservative
# Ignore '<!-- more -->' https://hexo.io/docs/tag-plugins#Post-Excerpt
ignoreCustomComments:
- '^\\s*more'
removeComments: true
removeEmptyAttributes: true
minifyJs:
minifyCss:
preset: default
minifyJson:
- ignoreCustomComments: Array of regex'es that allow to ignore certain comments, when matched.
Description of the above options and other available options, see htmlnano docs.
Author
hexo-htmlnano © Baoshuo, Released under the AGPL-3.0 License.
Authored and maintained by Baoshuo with help from contributors.
Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo