# webpack-plugin-ejs-minification

> Plugin that minify ejs using [html-minifier-terser](https://www.npmjs.com/package/html-minifier-terser)

Latest version **1.0.2** (published 2020-07-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-plugin-ejs-minification
pnpm add webpack-plugin-ejs-minification
yarn add webpack-plugin-ejs-minification
bun add webpack-plugin-ejs-minification
```

## 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.2 |
| Published | 2020-07-30 |
| First published | 2020-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | sanjoyksardar12 |

## Links

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

## Dependencies (1)

- [html-minifier-terser](https://npm.io/package/html-minifier-terser.md) ^5.1.1

## Recent versions

- 1.0.2 (latest) — 2020-07-30
- 1.0.1 — 2020-07-30
- 1.0.0 — 2020-07-30

## README

# webpack-plugin-ejs-minification
Plugin that minify ejs using [html-minifier-terser](https://www.npmjs.com/package/html-minifier-terser)

### installation
```
npm i --save-dev webpack-plugin-ejs-minification
```
```
yarn add --dev webpack-plugin-ejs-minification
```
Add the plugin to your webpack config as follows:
### webpack.config.js
```
const MinifyEJSContent = require('webpack-plugin-ejs-minification');
module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new MinifyEJSContent({
      dirPath: path.resolve(__dirname, `../dist/views`),
      minify:{
        minifyJS: true,
        removeComments: true
      }
    }),
  ]
}
```
More options can be added from [https://github.com/DanielRuf/html-minifier-terser#options-quick-reference](https://github.com/DanielRuf/html-minifier-terser#options-quick-reference)

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