0.1.0 • Published 6 years ago

webpack-pre-emit-plugin v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

webpack-pre-emit-plugin

Webpack plugin that gives ability to add callback before emit.

Inspired by pre-build-webpack, which provides a hook before the start of the build.

Installation

npm install --save-dev webpack-pre-emit-plugin

Usage

In config file:

var WebpackPreEmitPlugin = require('webpack-pre-emit-plugin');

// ...
  module: {
    plugins: [
      new WebpackPreEmitPlugin(function(stats, callback) {
        // Do whatever you want before build starts...
        callback(); // when done
      }),
    ]
  },
// ...