Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

webpack-customizer

1.0.3 • Public • Published

WebpackCustomizer

Hook into any webpack hooks using your own custom function

Install

npm i webpack-customizer --d

Use

const WebpackCustomizer = require('webpack-customizer')
 
plugins: [
    new WebpackCustomizer({
      hook: 'before-emit', // default: 'emit'
      action (compilation) {
        // Takes any Params based on used hook
      }
    })
]

Hook api: https://webpack.js.org/api/compiler/#event-hooks

Keywords

none

Install

npm i webpack-customizer

DownloadsWeekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar