james-uglify

James transformer for Uglify2.js

npm install james-uglify
2 downloads in the last week
14 downloads in the last month

Synopsis

UglifyJS 2 transformer for James.js.

var james  = require('james'),
    uglify = require('james-uglify');

james.task('default', function() {

  james.files('src/**/*.js').forEach(function(file) {
    james.read(file)
      .transform(uglify)
      .write(process.stdout);
  });
});

API

uglify(options): Return a new UglifyJS 2 transformer. Available options are listed in Uglify documentation.

npm loves you