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)
])
Bascially the webpack
module.
The webpack-chain instance.