/fly-uglify

Fly plugin for Uglify

Primary LanguageJavaScriptMIT LicenseMIT

fly-uglify

UglifyJS plugin for Fly.

Install

npm install --save-dev fly-uglify

API

.uglify(options)

Check out the UglifyJS documentation to see the available options.

Usage

exports.build = function * () {
  yield this.source('src/**/*.uglify')
    .uglify({
      compress: {
        drop_console: true,
        join_vars: true
      }
    })
    .target('dist');
}

License

MIT © FlyJS