Skip to content

wezz/WebpackLifecyclePlugin

Repository files navigation

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

About

A Lifecycle plugin for webpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published