0.0.3 • Published 3 years ago

hexo-htmlnano v0.0.3

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

hexo-htmlnano

NPM version

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: 

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