README
An end hook plugin for webpack.
An end hook plugin for webpack, triggered when webpack compiler is done.
Installation
npm i -D done-webpack-plugin
Usage
new DoneWebpackPlugin((stats) => {
console.info('stats', stats);
}, (err) => {
console.error('err', err);
})
Example
In webpack config file:
const DoneWebpackPlugin = require('done-webpack-plugin');
module.exports = {
//...
plugins: [
new DoneWebpackPlugin((stats) => {
// Conntent written here will be excuted right after webpack compiler is done.
console.log('stats', stats);
})
]
};