A Lifecycle plugin for webpack
npm install webpack-lifecycle-plugin --save-dev
module.exports = {
...
plugins:[
new LifecyclePlugin({"done": (compilation, options, pluginOptions) => {
console.log(compilation.compilation.records.chunks)
}}),
]
}
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