express-uglify-middleware

UglifyJS middleware for Express.

npm install express-uglify-middleware
10 downloads in the last week
21 downloads in the last month

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
}));
npm loves you