1.0.1 • Published 5 months ago

@uiolee/hexo-htmlnano v1.0.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
5 months ago

hexo-htmlnano

Minify HTML files with htmlnano

Install

NPM Version node-lts NPM License NPM Downloads NPM Downloads Libraries.io dependency status for latest release

pnpm add @uiolee/hexo-htmlnano

# npm i @uiolee/hexo-htmlnano

Configuration

Default Configuration

Defined in src/index.ts

hexo_htmlnano:
  enable: true
  priority: 999
  exclude: []
  presetName: "safe"
  htmlnanoOptions:
    removeEmptyAttributes: false
    collapseWhitespace: "conservative"
  postHtmlOptions:

Customize

namedefaulttypenote
enabletruebooleanset false to disable this plugin.
priority999numberdefine the priority of this plugin.Lower priority means that it will be executed first.
exclude[]array\<glob>Exclude files from being minified.Support globbing patterns.
presetName"safe"stringthe name of htmlnano#Preset.
htmlnanoOptionssee src/index.ts#L10objectsee htmlnamo#modules for more.
postHtmlOptionssee src/index.ts#L20objectsee posthtml#usage for more.
1.0.1

5 months ago

1.0.0-test.0

9 months ago

1.0.0

9 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago