Skip to content

Latest commit

History

History
34 lines (24 loc) 路 489 Bytes

create-a-flow.md

File metadata and controls

34 lines (24 loc) 路 489 Bytes

Create A Flow

An example:

// my-flow.js
module.exports = function myFlow(options) {
  return context => {
    // handle context and options
  }
}

Use your flow:

// webpack.config.js
const flow = require('webpack-flow')
const myFlow = require('./my-flow')

module.exports = flow.createConfig([
  myFlow(options)
])

context

webpack

Bascially the webpack module.

config

The webpack-chain instance.