UglifyJS middleware for Express.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

express-uglify-middleware

UglifyJS middleware for Express.

This package is derived from less-middleware.

Installation

sudo npm install express-uglify-middleware

Usage:

var uglifyMiddleware = require('express-uglify-middleware');

app.use(uglifyMiddleware({ 
      src:  __dirname + "/javascript"
    , dest:  pubDir + '/js'
    , prefix: "/js"
    , compressFilter: /\.js$/
    , compress: true
    , force: false
    , debug: false
}));