Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

broccoli-uglify-js

joliss1.2kMIT0.2.0

UglifyJS2 filter for Broccoli

broccoli-plugin, javascript, uglify, minify

readme

broccoli-uglify-js

UglifyJS2 filter for Broccoli.

Installation

npm install --save-dev broccoli-uglify-js

Usage

var uglifyJavaScript = require('broccoli-uglify-js');
tree = uglifyJavaScript(tree, options);

Options

The following options are supported:

  • mangle (passed through to UglifyJS): pass false to skip mangling names

  • compress (passed through to UglifyJS): pass false to skip compressing; pass an object to specify compressor options

  • output (passed through to UglifyJS): pass an object to specify additional output options

To Do

  • Enable ascii_only by default

Source Maps

Source maps are not yet supported.

changelog

master

0.2.0

  • Upgrade to uglify-js ~2.6.2

0.1.3

  • Update filter dependency to avoid hardlink issue

0.1.2

  • Call base class constructor to enable broccoli-filter options

0.1.1

  • Update broccoli-filter dependency

0.1.0

  • Bump version to allow for floating patch version

0.0.4

  • Use broccoli-filter instead of broccoli.Filter

0.0.3

  • Do not require dependency-injecting broccoli

0.0.2

  • Expose new functional syntax

0.0.1

  • Initial release