hexo-html-minifier
Minify HTML files with HTMLMinifier.
Last updated 9 months ago by curben .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hexo-html-minifier 
SYNC missed versions from official npm registry.

hexo-html-minifier

Build Status NPM version

Minify HTML files with HTMLMinifier.

Installation

$ npm install hexo-html-minifier --save

Options

You can set options of HTMLMinifier in the main _config.yml file:

html_minifier:
  exclude: 

Default options:

html_minifier:  
  collapseBooleanAttributes: true
  collapseWhitespace: true
  # Ignore '<!-- more -->' https://hexo.io/docs/tag-plugins#Post-Excerpt
  ignoreCustomComments: [ !!js/regexp /^\s*more/]
  removeComments: true
  removeEmptyAttributes: true
  removeScriptTypeAttributes: true
  removeStyleLinkTypeAttributes: true
  minifyJS: true
  minifyCSS: true
  • ignoreCustomComments: Array of regex'es that allow to ignore certain comments, when matched. Need to prepend !!js/regexp to support regex.

Description of the above options and other available options, see HTMLMinifier

Current Tags

  • 1.0.0                                ...           latest (9 months ago)

3 Versions

  • 1.0.0                                ...           9 months ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           5 years ago
Downloads
Today 0
This Week 2
This Month 25
Last Day 0
Last Week 6
Last Month 38
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |