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:
stringPath to the root JS file, either absolute or relative to JS root.
string"ios"Either "ios" or "android".
booleantrueEnables development warnings and disables production optimizations.
booleanAllows 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.
stringFile name where to store the resulting bundle, ex. /tmp/groups.bundle.
stringFile name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map.
stringDirectory name where to store assets referenced in the bundle.
stringStores stats in a file.
stringInstructs Webpack on how to treat the stats:
More details: Webpack documentation
booleanEnables verbose logging.
booleanfalseWatch for file changes.
stringPath to a Webpack config file.
Display help for the command.