post-factor-bundle
Add features to make factor-bundle more friendly.
gulp-watchify-factor-bundle is based on this package.
Example
var gulp = ;var path = ;var buffer = ;var uglify = ;var browserify = ;var merge = ;var source = ; var factor = ; var fixtures = pathresolve; var entries = ; gulp;
b.plugin(factor, opts)
opts
entries
Type: Array
The array of entry files to create a page-specific bundle for each file.
outputs
Type: Array
, Function
An array that pairs up with the files array to specify where each bundle output for each entry file should be written.
If Function
, it should return such an array.
threshold
Type: Number
, Function
Default: 1
See factor-bundle
pack
Type: Function
Transform to replace browser-pack
.
b.on('factor.pipelines', function (files, pipelines, outputStreams) {})
files
and pipelines
are both Array
,
and elements are explained in factor-bundle
outputStreams
is Array
, containing all output streams except the common stream.