index.js 320 B

1234567891011121314
  1. 'use strict';
  2. var uglify = require('uglify-js');
  3. var compose = require('./composer');
  4. var GulpUglifyError = require('./lib/gulp-uglify-error');
  5. var logger = require('./lib/log');
  6. module.exports = function(opts) {
  7. return compose(
  8. uglify,
  9. logger
  10. )(opts);
  11. };
  12. module.exports.GulpUglifyError = GulpUglifyError;