@uiolee/hexo-htmlnano

0.1.2 • Public • Published

hexo-htmlnano

Minify HTML files with htmlnano

Install

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

name default type note
enable true boolean set false to disable this plugin.
priority 999 number define 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" string the name of htmlnano#Preset.
htmlnanoOptions see src/index.ts#L10 object see htmlnamo#modules for more.
postHtmlOptions see src/index.ts#L20 object see posthtml#usage for more.

Package Sidebar

Install

npm i @uiolee/hexo-htmlnano

Weekly Downloads

2

Version

0.1.2

License

MPL-2.0

Unpacked Size

22.5 kB

Total Files

4

Last publish

Collaborators

  • uiolee