Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minify HTML files with HTMLMinifier.

License

NotificationsYou must be signed in to change notification settings

hexojs/hexo-html-minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusNPM version

Minify HTML files withHTMLMinifier.

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: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/regexp to support regex.

Description of the above options and other available options, seeHTMLMinifier

About

Minify HTML files with HTMLMinifier.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors13


    [8]ページ先頭

    ©2009-2025 Movatter.jp