connect-html-minifier

HTML minifier middleware for connect.

connect-html-minifier

HTML minifier middleware for connect.

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

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

MIT