Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork11
Minify HTML files with HTMLMinifier.
License
NotificationsYou must be signed in to change notification settings
hexojs/hexo-html-minifier
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Minify HTML files withHTMLMinifier.
$ npm install hexo-html-minifier --save
You can set options of HTMLMinifier in the main_config.yml file:
html_minifier:exclude:
- exclude: Exclude files from being minified. Supportglobbing patterns.
Default options:
html_minifier:collapseBooleanAttributes:truecollapseWhitespace:true# Ignore '<!-- more -->' https://hexo.io/docs/tag-plugins#Post-ExcerptignoreCustomComments:[ !!js/regexp /^\s*more/]removeComments:trueremoveEmptyAttributes:trueremoveScriptTypeAttributes:trueremoveStyleLinkTypeAttributes:trueminifyJS:trueminifyCSS:true
- ignoreCustomComments: Array of regex'es that allow to ignore certain comments, when matched. Need to prepend
!!js/regexpto support regex.
Description of the above options and other available options, seeHTMLMinifier
About
Minify HTML files with HTMLMinifier.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Contributors13
Uh oh!
There was an error while loading.Please reload this page.