express-html-minify

1.0.4 • Public • Published

express-html-minify

A html-minifier middleware for expressjs

installation

npm install express-html-minify

usage

 
var express     = require('express');
var minify = require('express-html-minify');
 
var app = express();
app.use(minify);
 
app.get('/', function(req, res){
   res.header("content-type", 'text/html')
   res.sendfile(__dirname+"/index.html");
});
 
app.listen(8081);
 

LICENSE

BSD

Readme

Keywords

Package Sidebar

Install

npm i express-html-minify

Weekly Downloads

9

Version

1.0.4

License

BSD

Last publish

Collaborators

  • plasmashadow