1.1.1 • Published 5 years ago

webpack-event-plugin v1.1.1

Weekly downloads
655
License
MIT
Repository
github
Last release
5 years ago

webpack-event-plugin

Inspired by on-build-webpack but allows for adding a callback after user specified webpack event hooks.

NPM
npm

Installation

npm install --save-dev webpack-event-plugin

Usage

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/

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

7 years ago