zwe-uglifyjs-middleware
v0.5.3
Published
Yet another uglify.js middleware for connect/express
Downloads
19
Maintainers
Readme
uglify.js-middleware
Installation
Npm mode:
npm install zwe-uglifyjs-middleware
Package mode:
"dependencies": {
"zwe-uglifyjs-middleware": "*"
}
Options
Examples
Connect
var server = connect.createServer(
require('zwe-uglifyjs-middleware')({
src: __dirname + '/public'
}),
connect.staticProvider(__dirname + '/public')
);
Express
var app = express.createServer();
app.use(require('zwe-uglifyjs-middleware')({
src: __dirname + '/public'
});
app.use(express.static(__dirname + '/public'));