Broccoli filter to uglify with sourcemaps
JavaScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test correct slicing semantics Sep 15, 2016
.gitignore initial Dec 14, 2014
.travis.yml
LICENSE metadata Dec 14, 2014
README.md [DOCFIX] Update the README.md to reflect the real package name. Jan 15, 2016
index.js [Fixes #38 #36] improve slow concat warning Dec 20, 2016
package.json
yarn.lock

README.md

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' ]
  }
});