hexo-htmlnano

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i hexo-htmlnano

Weekly Downloads

0

Version

0.0.3

License

AGPL-3.0

Unpacked Size

3.61 kB

Total Files

4

Last publish

Collaborators

  • renbaoshuo