# html-webpack-event-plugin

> the events of html-webpack-plugin.

Latest version **0.2.0** (published 2018-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-webpack-event-plugin
pnpm add html-webpack-event-plugin
yarn add html-webpack-event-plugin
bun add html-webpack-event-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.0 |
| Published | 2018-05-08 |
| First published | 2016-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | pfdnpm |
| Maintainers | pfdnpm |
| Keywords | html, webpack, event, plugin |

## Links

- npm: https://www.npmjs.com/package/html-webpack-event-plugin
- Repository: https://github.com/pfdgithub/html-webpack-event-plugin
- Issues: https://github.com/pfdgithub/html-webpack-event-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-event-plugin

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2018-05-08
- 0.1.1 — 2016-12-22
- 0.1.0 — 2016-11-02

## README

# html-webpack-event-plugin

[![npm version](https://badge.fury.io/js/html-webpack-event-plugin.svg)](http://badge.fury.io/js/html-webpack-event-plugin) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()

the [events](https://github.com/ampedandwired/html-webpack-plugin#events) of [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin)  

Async:  

 * `html-webpack-plugin-before-html-generation`
 * `html-webpack-plugin-before-html-processing`
 * `html-webpack-plugin-alter-asset-tags`
 * `html-webpack-plugin-after-html-processing`
 * `html-webpack-plugin-after-emit`

Sync:  

 * `html-webpack-plugin-alter-chunks`

## Installation

``` bash
npm install --save-dev html-webpack-event-plugin
```

## Usage

Even if you generate multiple files make sure that you add the HtmlWebpackEventPlugin only once.  

```javascript
var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackEventPlugin = require('html-webpack-event-plugin');

plugins: [
  new HtmlWebpackEventPlugin(),
  new HtmlWebpackPlugin(),
  new HtmlWebpackPlugin({
    alterChunks: function (htmlPluginData, chunks) {
      return chunks;
    },
    beforeHtmlGeneration: function (htmlPluginData) {
      return htmlPluginData;
    },
    beforeHtmlProcessing: function (htmlPluginData) {
      return htmlPluginData;
    },
    alterAssetTags: function (htmlPluginData) {
      return htmlPluginData;
    },
    afterHtmlProcessing: function (htmlPluginData) {
      return htmlPluginData;
    },
    afterEmit: function (htmlPluginData) {
      return htmlPluginData;
    }
  })
]
```

## License

This project is licensed under MIT.

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