webpack-lifecycle-plugin
v0.1.4
Published
A Lifecycle plugin for webpack
Downloads
10
Maintainers
Readme
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