# poi-preset-babel-minify

> Use [babel-minify](https://github.com/babel/babel-minify) to minimize JavaScript.

Latest version **1.0.3** (published 2017-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install poi-preset-babel-minify
pnpm add poi-preset-babel-minify
yarn add poi-preset-babel-minify
bun add poi-preset-babel-minify
```

## 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 | 1.0.3 |
| Published | 2017-10-19 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5161 |
| Maintainers | rem |

## Links

- npm: https://www.npmjs.com/package/poi-preset-babel-minify
- Repository: https://github.com/egoist/poi
- Homepage: https://github.com/egoist/poi#readme
- Issues: https://github.com/egoist/poi/issues
- npm.io page: https://npm.io/package/poi-preset-babel-minify

## Dependencies (1)

- [babel-minify-webpack-plugin](https://npm.io/package/babel-minify-webpack-plugin.md) ^0.2.0

## Recent versions

- 1.0.3 (latest) — 2017-10-19
- 1.0.2 — 2017-08-21

## README

# poi-preset-babel-minify

Use [babel-minify](https://github.com/babel/babel-minify) to minimize JavaScript.

## Install

```bash
yarn add poi-preset-babel-minify --dev
```

## Usage

This preset will replace UglifyjsPlugin with [babel-minify-webpack-plugin](https://github.com/webpack-contrib/babel-minify-webpack-plugin) for you:

```js
// poi.config.js
module.exports = {
  presets: [
    require('poi-preset-babel-minify')()
  ]
}
```

Then it will compress JS code when you run `poi build`.

It accepts the same options as which in [babel-minify-webpack-plugin](https://github.com/webpack-contrib/babel-minify-webpack-plugin#options):

```js
require('poi-preset-babel-minify')(babelMinifyOptions, overrides)
```

## License

MIT &copy; [EGOIST](https://github.com/egoist)

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