Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 584 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 584 Bytes

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