webpack-lifecycle-plugin

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i webpack-lifecycle-plugin

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • wezz