# broccoli-uglify-js

> UglifyJS2 filter for Broccoli

Latest version **0.2.0** (published 2016-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-uglify-js
pnpm add broccoli-uglify-js
yarn add broccoli-uglify-js
bun add broccoli-uglify-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-06-08 |
| First published | 2014-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jo Liss |
| Maintainers | joliss |
| Keywords | broccoli-plugin, javascript, uglify, minify |

## Links

- npm: https://www.npmjs.com/package/broccoli-uglify-js
- Repository: https://github.com/joliss/broccoli-uglify-js
- Homepage: https://github.com/joliss/broccoli-uglify-js#readme
- Issues: https://github.com/joliss/broccoli-uglify-js/issues
- npm.io page: https://npm.io/package/broccoli-uglify-js

## Dependencies (2)

- [uglify-js](https://npm.io/package/uglify-js.md) ~2.6.2
- [broccoli-filter](https://npm.io/package/broccoli-filter.md) ^0.1.6

## Recent versions

- 0.2.0 (latest) — 2016-06-08
- 0.1.3 — 2014-04-11
- 0.1.2 — 2014-04-09
- 0.1.1 — 2014-03-15
- 0.1.0 — 2014-02-25
- 0.0.4 — 2014-02-10
- 0.0.3 — 2014-02-07
- 0.0.2 — 2014-02-06
- 0.0.1 — 2014-01-24

## README

# broccoli-uglify-js

[UglifyJS2](https://github.com/mishoo/UglifyJS2) filter for Broccoli.

## Installation

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

## Usage

```js
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](http://lisperator.net/uglifyjs/compress)

* `output` (passed through to UglifyJS): pass an object to specify additional
  [output options](http://lisperator.net/uglifyjs/codegen)

## To Do

* Enable `ascii_only` by default

## Source Maps

Source maps are not yet supported.

---
_Source: https://npm.io/package/broccoli-uglify-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
