Wondering what’s next for npm?Check out our public roadmap! »

    webpack-event-plugin

    1.1.1 • Public • Published

    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/

    Install

    npm i webpack-event-plugin

    DownloadsWeekly Downloads

    572

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    3.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar