Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-run-callback

vertexbz200.2.0

Webpack pluging executing callback on event

readme

Webpack Run Callback

Usage

const WebpackRunCallback = require('webpack-run-callback');

new WebpackRunCallback(<action>, <callback>);
`

actions supported by webpack: https://webpack.github.io/docs/plugins.html#run-async

Example

const WebpackRunCallback = require('webpack-run-callback');

module.exports = {
  //...
  //...
  plugins: [
    new WebpackRunCallback('done', (...args) => console.log('DONE', ...args))
  ],
  //...
}