done-webpack-plugin
v1.0.3
Published
An end hook plugin for webpack, triggered when webpack compiler is done.
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-pluginUsage
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);
})
]
};