# broccoli-uglify-sourcemap

> Broccoli filter to uglify files while preserving their sourcemaps.

Latest version **4.0.0** (published 2020-09-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2020-09-04 |
| First published | 2014-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^10.12.0 \|\| 12.* \|\| >= 14 |
| Dependencies | 10 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Edward Faulkner |
| Maintainers | ef4, ember-cli, mikrostew, rwjblue, stefanpenner, turbo87 |

## Links

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

## Dependencies (10)

- [debug](https://npm.io/package/debug.md) ^4.1.0
- [terser](https://npm.io/package/terser.md) ^5.3.0
- [walk-sync](https://npm.io/package/walk-sync.md) ^2.2.0
- [workerpool](https://npm.io/package/workerpool.md) ^6.0.0
- [source-map-url](https://npm.io/package/source-map-url.md) ^0.4.0
- [broccoli-plugin](https://npm.io/package/broccoli-plugin.md) ^4.0.3
- [symlink-or-copy](https://npm.io/package/symlink-or-copy.md) ^1.3.1
- [matcher-collection](https://npm.io/package/matcher-collection.md) ^2.0.1
- [async-promise-queue](https://npm.io/package/async-promise-queue.md) ^1.0.5
- [lodash.defaultsdeep](https://npm.io/package/lodash.defaultsdeep.md) ^4.6.1

## Recent versions

- 4.0.0 (latest) — 2020-09-04
- 2.0.0-beta.2 (beta) — 2017-07-10
- 3.2.0 — 2019-10-18
- 3.1.1 — 2019-04-16
- 3.1.0 — 2019-03-22
- 3.0.0 — 2019-02-26
- 2.2.0 — 2018-05-28
- 2.1.1 — 2018-03-26
- 2.1.0 — 2018-03-26
- 2.0.2 — 2018-01-11
- 2.0.1 — 2017-11-16
- 2.0.0 — 2017-10-03
- 2.0.0-beta.1 — 2017-07-09
- 1.5.2 — 2017-04-01
- 1.5.1 — 2016-12-20
- … 12 more at https://npm.io/package/broccoli-uglify-sourcemap/versions

## README

[![Build Status](https://travis-ci.org/ember-cli/broccoli-uglify-sourcemap.svg?branch=master)](https://travis-ci.org/ember-cli/broccoli-uglify-sourcemap)

A broccoli filter that applies [terser](https://github.com/terser/terser) to
uglify code while properly generating or maintaining sourcemaps.

### installation

```sh
npm install --save broccoli-uglify-sourcemap
```

### usage

```js
const Uglify = require('broccoli-uglify-sourcemap');

// basic usage
let uglified = new Uglify(input);

// advanced usage
let uglified = new Uglify(input, {
  exclude: [..], // array of globs, to not minify

  uglify: {
    mangle: false,    // defaults to true
    compress: false,  // defaults to true
    sourceMap: false, // defaults to true
    //...
  },

  publicUrl: 'https://myamazingapp.com/', // value to be prepended to sourceMappingURL, defaults to ''
  hiddenSourceMap: false, // skips adding the reference to sourcemap in the minified JS, defaults to false

  concurrency: 3 // number of parallel workers, defaults to number of CPUs - 1
});
```

To disable parallelization:

```
$ JOBS=0
$ JOBS=1
```

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