# grunt-terser

> Grunt plugin for A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.

Latest version **2.0.0** (published 2021-01-27) · 0 weekly downloads

## Install

```sh
npm install grunt-terser
pnpm add grunt-terser
yarn add grunt-terser
bun add grunt-terser
```

## 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 | 2.0.0 |
| Published | 2021-01-27 |
| First published | 2018-07-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 1 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Alexandr Dascal |
| Maintainers | adascal |
| Keywords | gruntplugin, grunt, minify, terser, uglify, terser, uglify-es, uglify-js, minify, minifier, javascript, ecmascript, es5, es6, es7, es8, es2015, es2016, es2017, async, await |

## Links

- npm: https://www.npmjs.com/package/grunt-terser
- Repository: https://github.com/adascal/grunt-terser
- Issues: https://github.com/adascal/grunt-terser/issues
- npm.io page: https://npm.io/package/grunt-terser

## Dependencies (1)

- [grunt](https://npm.io/package/grunt.md) ^1.1.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-01-27
- 1.0.0 — 2019-10-20
- 0.1.1 — 2019-10-20
- 0.1.0 — 2018-07-19

## README

# grunt-terser

> Grunt plugin for A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.

## Getting Started

This plugin requires Grunt `^1.x`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-terser --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-terser');
```

## The "terser" task

### Overview

In your project's Gruntfile, add a section named `terser` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  terser: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});
```

### Options

Accepts Terser's [options](https://www.npmjs.com/package/terser#minify-options).

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History

- 2021-02-27   v2.0.0   Support terser v5 and async code minify

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