node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

connect-html-minifier

connect-html-minifier

Build Status Dependency Status devDependency Status

HTML minifier middleware for connect.

Install

npm install connect-html-minifier

Usage

var connect = require('connect'),
    htmlMinifier = require('connect-html-minifier');
 
connect()
.use(htmlMinifier({removeComments: true})
.listen(8080);

Options

Options allowed are the same as options allowed in kangax/html-minifier.

License

MIT