james-uglify

2019-10-09

James transformer for Uglify2.js

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.

Repository

httpshub.com/leonidas/james-uglify


上一篇:james
下一篇:jake-utils
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部