Skip to content

Commit

Permalink
Document some missing cli and constructor options
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowMelon committed Jan 10, 2016
1 parent b2374ce commit 58e8c5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.markdown
Expand Up @@ -191,6 +191,10 @@ Advanced Options:
Use a transform module on all files after any ordinary transforms have run.
--ignore-transform=MODULE, -it MODULE
Do not run certain transformations, even if specified elsewhere.
--plugin=MODULE, -p MODULE
Register MODULE as a plugin.
Expand Down Expand Up @@ -386,6 +390,9 @@ passed.

Entry files may be passed in `files` and / or `opts.entries`.

External requires may be specified in `opts.require`, accepting the same formats
that the `files` argument does.

If an entry file is a stream, its contents will be used. You should pass
`opts.basedir` when using streaming files so that relative requires can be
resolved.
Expand All @@ -399,6 +406,12 @@ don't have any requires or node-style globals but take forever to parse.
`opts.transform` is an array of transform functions or modules names which will
transform the source code before the parsing.

`opts.ignoreTransform` is an array of transformations that will not be run,
even if specified elsewhere.

`opts.plugin` is an array of plugin functions or module names to use. See the
plugins section below for details.

`opts.extensions` is an array of optional extra extensions for the module lookup
machinery to use when the extension has not been specified.
By default browserify considers only `.js` and `.json` files in such cases.
Expand All @@ -424,6 +437,8 @@ useful for preserving the original paths that a bundle was generated with.
`opts.bundleExternal` boolean option to set if external modules should be
bundled. Defaults to true.

When `opts.browserField` is false, the package.json browser field will be ignored.

When `opts.insertGlobals` is true, always insert `process`, `global`,
`__filename`, and `__dirname` without analyzing the AST for faster builds but
larger output bundles. Default false.
Expand Down

0 comments on commit 58e8c5c

Please sign in to comment.