bundle
or webpack-bundle
is a command-line tool that builds the bundle for the provided project.
In the root of an existing project, run this command in your terminal of choice:
string
Path to the root JS file, either absolute or relative to JS root.
string
"ios"
Either "ios" or "android".
boolean
true
Enables development warnings and disables production optimizations.
boolean
Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.
string
File name where to store the resulting bundle, ex. /tmp/groups.bundle.
string
File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map.
string
Directory name where to store assets referenced in the bundle.
string
Stores stats in a file.
string
Instructs Webpack on how to treat the stats:
More details: Webpack documentation
boolean
Enables verbose logging.
boolean
false
Watch for file changes.
string
Path to a Webpack config file.
Display help for the command.