james-uglify

2019-10-09 admin

james-uglify是什么

什么是james-uglify,James transformer for Uglify2.js

james-uglify使用教程帮助文档

Synopsis

UglifyJS 2 transformer for James.js.

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

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

  james.list('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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-76910.html

文章标题:james-uglify

回到顶部