1.0.7 • Published 7 years ago

koa-html-minifier2 v1.0.7

Weekly downloads
17
License
MIT
Repository
github
Last release
7 years ago

Koa HTML Minifier 2

License MIT Build Status Coverage Status NPM Version NPM Download

It is the like as koajs/html-minifier, and supports koa 2.x.

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.

Install

npm i --save koa-html-minifier2

Usage

const htmlMinifier2 = require('koa-html-minifier2')

app.use(htmlMinifier2({
    collapseWhitespace: true,
    minifyCSS: true,
    minifyJS: true
}))

Options

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

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago