An uglify plugin for use in duo builds
$ npm install duo-uglify
$ duo --use duo-uglify
var duo = require('duo');
var uglify = require('duo-uglify');
duo(__dirname)
.use(uglify())
.entry('index.js')
.run(function (err, results) {
// ...
});
Generates a duo plugin function. Any options
will be passed directly to
UglifyJS.minify()
.
This plugin will automatically detect source-maps support.