npm.io
2.0.0 • Published 8 years ago

around-build-webpack-plugin

Licence
MIT
Version
2.0.0
Deps
1
Size
10 kB
Vulns
0
Weekly
0

around-build-webpack-plugin

Install

npm i --save-dev around-build-webpack-plugin

Usage

pre-build steps and post-build steps will be executed sequentially .

webpack.config.js

const { PreBuildPlugin, PostBuildPlugin } = require('around-build-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new PreBuildPlugin(
      async function PreBuildStep1 () { },
      async function PreBuildStep2 () { }
    ),
    new PostBuildPlugin(
      async function PreBuildStep2 () { }
      async function PreBuildStep2 () { }
    )
  ]
}
License

MIT.

Keywords