html-minifier

minify HTML responses like some crazy guy

  • 所有者: koajs/html-minifier
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Koa HTML Minifier

Middleware that minifies your HTML responses using html-minifier.
It uses html-minifier's default options which are all turned off by default,
so you have to set the options otherwise it's not going to do anything.

API

// do compression stuff first
app.use(require('koa-compress')());

// then use this minifier
app.use(require('koa-html-minifier')({
  collapseWhitespace: true
}));

Options

See: https://github.com/kangax/html-minifier#options-quick-reference

主要指標

概覽
名稱與所有者koajs/html-minifier
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2014-06-13 08:01:34
推送於2023-04-28 16:57:07
最后一次提交2022-12-07 16:10:01
發布數5
最新版本名稱3.0.0 (發布於 )
第一版名稱1.0.0 (發布於 )
用户参与
星數32
關注者數8
派生數6
提交數90
已啟用問題?
問題數4
打開的問題數0
拉請求數46
打開的拉請求數3
關閉的拉請求數23
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?