webpack-pre-emit-plugin

0.1.0 • Public • Published

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
      }),
    ]
  },
// ...

Readme

Keywords

Package Sidebar

Install

npm i webpack-pre-emit-plugin

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rigor789