# cleanifyjs-webpack-plugin

> webpack plugin for cleaning js codes

Latest version **0.2.3** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install cleanifyjs-webpack-plugin
pnpm add cleanifyjs-webpack-plugin
yarn add cleanifyjs-webpack-plugin
bun add cleanifyjs-webpack-plugin
```

## 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.3 |
| Published | 2017-10-23 |
| First published | 2017-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dimas Sumartoyo |
| Maintainers | sumartoyo |

## Links

- npm: https://www.npmjs.com/package/cleanifyjs-webpack-plugin
- Repository: https://github.com/sumartoyo/cleanifyjs-webpack-plugin
- Homepage: https://github.com/sumartoyo/cleanifyjs-webpack-plugin#readme
- Issues: https://github.com/sumartoyo/cleanifyjs-webpack-plugin/issues
- npm.io page: https://npm.io/package/cleanifyjs-webpack-plugin

## Recent versions

- 0.2.3 (latest) — 2017-10-23
- 0.2.2 — 2017-10-16
- 0.2.1 — 2017-10-15
- 0.2.0 — 2017-10-14
- 0.1.0 — 2017-10-14

## README

This webpack plugin removes comments and unnecessary white spaces and semicolons from JS codes. It does not add or change anything else. This plugin does not generate source map.

## Usage

```js
const CleanifyJsPlugin = require('cleanifyjs-webpack-plugin')

const myWebpackConfig = {
  entry: [ ... ],
  output: { ... },
  resolve: { ... },
  module: { ... },
  plugins: {
    ...
    new CleanifyJsPlugin(),
    ...
  },
  ...
}
```

### Options

None.

### Test

`npm run test`

## Notes

If you want to reduce the size of your code, [UglifyJS plugin](https://webpack.js.org/plugins/uglifyjs-webpack-plugin/) is probably what you need. Some notes of this plugin:

* UglifyJS is slower than this plugin and will be much slower if you generate source map. If you really need faster processing time and still want to reduce you code size while maintaining readability without generating source map, this plugin is pretty good for that.

* The produced codes will be larger in size compared to UglifyJS'. It will not differ too much after gzip though.

* New lines are kept but repeating new lines will be removed. Since this plugin does not add anything to your code, it cannot add additional semicolons to concat two lines of codes.

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