1.0.3 • Published 7 years ago

broccoli-uglify-es-sourcemap v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

Build Status

A broccoli filter that applies uglify-js while properly generating or maintaining sourcemaps.

installation

npm install --save broccoli-uglify-sourcemap

usage

var uglify = require('broccoli-uglify-sourcemap');

// basic usage
var uglified = uglify(input);

// advanced usage
var uglified = uglify(input, {
  mangle: true,   // defaults to true
  compress: true, // defaults to true
  sourceMapIncludeSources: true // defaults to true
  exclude: [..] // array of globs, to not minify
  //...
  sourceMapConfig: {
    enabled: true, // defaults to true
    extensions: [ 'js' ] // defaults to [ 'js' ]
  }
});