plumber-uglifyjs

UglifyJS operation for Plumber pipelines

npm install plumber-uglifyjs
49 downloads in the last week
878 downloads in the last month

plumber-uglifyjs Build Status

JavaScript minimisation operation for Plumber pipelines, using UglifyJS2.

Example

var uglifyjs = require('plumber-uglifyjs');

module.exports = function(pipelines) {

    pipelines['css'] = [
        glob('scripts/**/*.js'),
        uglifyjs(),
        // ... more pipeline operations
    ];

};

API

uglifyjs()

Minimise each input JavaScript resource.

Source maps for all input resources will be updated or generated accordingly.

npm loves you