pre-build-webpack

v0.1.0
Webpack plugin that gives ability to add callback before build
webpack

pre-build-webpack

Webpack plugin that gives ability to add callback before build.

Inspired by on-build-webpack, which provides a hook for the end of the build.

Installation

npm install --save-dev pre-build-webpack

Usage

In config file:

var WebpackPreBuildPlugin = require('pre-build-webpack');

// ...
  module: {
    plugins: [
      new WebpackPreBuildPlugin(function(stats) {
        // Do whatever you want before build starts...
      }),
    ]
  },
// ...
npm i pre-build-webpack

Metadata

  • MIT
  • Whatever
  • Ben Elliott
  • released 4/12/2016

Downloads

Maintainers