Skip to content

Commit

Permalink
Document opts.outputs and opts.entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Sep 4, 2014
1 parent deb990b commit 4eefd30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,14 @@ The output format for `fr` and each of the `fr` sub-streams given by each
`'stream'` event is also in the
[module-deps](https://npmjs.org/package/module-deps) format.

`opts.o` should be an array that pairs up with the `files` array to specify
`opts.o` or `opts.outputs` should be an array that pairs up with the `files` array to specify
where each bundle output for each entry file should be written. The elements in
`opts.o` can be string filenames or writable streams.
`opts.o` can be string filenames, writable streams,
or functions that return filenames or streams. Passing functions that return
streams may be useful when calling `b.bundle()` multiple times.

`opts.entries` or `opts.e` is an optional array of entries that may be used
instead of passing entries to browserify.

The files held in common among `> opts.threshold` (default: 1) bundles will be
output on the `fr` stream itself. The entry-specific bundles are diverted into
Expand Down

0 comments on commit 4eefd30

Please sign in to comment.