0.1.4 • Published 6 years ago

webpack-lifecycle-plugin v0.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Webpack Lifecycle Plugin

A Lifecycle plugin for webpack

Installation

npm install webpack-lifecycle-plugin --save-dev

Usage

module.exports = {
  ...
  plugins:[
    new LifecyclePlugin({"done": (compilation, options, pluginOptions) => {
      console.log(compilation.compilation.records.chunks)
    }}),
  ]
}

Note

This plugin currently supports all the documented webpack hooks. Not all hooks have been tested. Add an issue (with reproducable code) to the repo if problem occur.

To read more about Hooks look at the webpack documentation