# webpack-event-plugin

> Webpack plugin to run post event hook methods

Latest version **1.1.1** (published 2019-01-22) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2019-01-22 |
| First published | 2017-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Derek Finlinson |
| Maintainers | derekfinlinson |
| Keywords | webpack, event-hook |

## Links

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

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2019-01-22
- 1.1.0 — 2018-12-19
- 1.0.0 — 2017-06-01

## README

# webpack-event-plugin
Inspired by [on-build-webpack](https://github.com/kossnocorp/on-build-webpack) but allows for adding a callback after user specified webpack event hooks.

|NPM|
|---|
|[![npm](https://img.shields.io/npm/v/webpack-event-plugin.svg?style=flat-square)](https://www.npmjs.com/package/webpack-event-plugin)|

## Installation
```
npm install --save-dev webpack-event-plugin
```

## Usage
``` javascript
const WebpackEventPlugin = require('webpack-event-plugin');

// ...  
plugins: [
  new WebpackEventPlugin([
    {
      hook: 'afterEmit',
      callback: (compilation) => {
        console.log('Files emitted!');
      }
    }
  ])
]
// ...
```

## Available event hooks
https://webpack.js.org/api/compiler-hooks/

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