1.0.3 • Published 4 years ago

done-webpack-plugin v1.0.3

Weekly downloads
99
License
ISC
Repository
-
Last release
4 years ago

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);
    })
  ]
};
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago