Skip to content

sourcepirate/express-html-minify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##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