# ember-cli-uglify

> JavaScript minification for Ember-CLI

Latest version **3.0.0** (published 2019-04-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ember-cli-uglify
pnpm add ember-cli-uglify
yarn add ember-cli-uglify
bun add ember-cli-uglify
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-04-12 |
| First published | 2015-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.* \|\| >= 10.* |
| Dependencies | 2 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jkarsrud, rwjblue, stefanpenner, turbo87 |
| Keywords | ember-addon |

## Links

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

## Dependencies (2)

- [lodash.defaultsdeep](https://npm.io/package/lodash.defaultsdeep.md) ^4.6.0
- [broccoli-uglify-sourcemap](https://npm.io/package/broccoli-uglify-sourcemap.md) ^3.1.0

## Recent versions

- 3.0.0 (latest) — 2019-04-12
- 2.0.0-beta.2 (next) — 2017-09-08
- 2.1.0 — 2018-03-28
- 2.0.2 — 2018-02-21
- 2.0.0 — 2017-10-03
- 2.0.0-beta.1 — 2017-07-10
- 1.2.0 — 2015-06-16
- 1.0.1 — 2015-01-27
- 1.0.0 — 2015-01-27

## README

ember-cli-uglify
==============================================================================

[![npm](https://img.shields.io/npm/v/ember-cli-uglify.svg)](https://www.npmjs.com/package/ember-cli-uglify)
[![Build Status](https://travis-ci.org/ember-cli/ember-cli-uglify.svg?branch=master)](https://travis-ci.org/ember-cli/ember-cli-uglify)
[![Build status](https://ci.appveyor.com/api/projects/status/xbx40pk5b4ykawjh/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/ember-cli-uglify/branch/master)

[UglifyJS](https://github.com/mishoo/UglifyJS2) for [Ember.js](http://emberjs.com/).


Installation
------------------------------------------------------------------------------

```
ember install ember-cli-uglify
```

Usage
------------------------------------------------------------------------------

After installing `ember-cli-uglify` it will automatically hook into the build
pipeline and minify your JS files in production builds.

If you want to customize how `ember-cli-uglify` is running UglifyJS under the
hood you have several configuration options available:

```js
// ember-cli-build.js

var app = new EmberApp({
  'ember-cli-uglify': {
    enabled: true,

    exclude: ['vendor.js'],

    uglify: {
      compress: {
        sequences: 50,
      },
      output: {
        semicolons: true,
      },
    },
  },
});
```


### Options

- `enabled?: boolean`: Enables/Disables minification (defaults to `true` for
  production builds, `false` for development builds)

- `exclude?: string[]`: A list of paths or globs to exclude from minification

- `uglify?: UglifyOptions`: A hash of [options](https://github.com/mishoo/UglifyJS2#minify-options)
  that are passed directly to UglifyJS


### Source Maps

Source maps are disabled by default for production builds in Ember CLI. If you
want to enable source maps for production builds you can configure that in your
`ember-cli-build.js` too:

```js
// ember-cli-build.js

var app = new EmberApp({
  sourcemaps: {
    enabled: true,
    extensions: ['js'],
  },
});
```


License
------------------------------------------------------------------------------
ember-cli-uglify is licensed under the [MIT License](LICENSE.md).

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