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:
booleanIncrease logging verbosity.
stringDirectory name where to store assets referenced in the bundle.
stringPath to the root JS file, either absolute or relative to JS root.
booleanfalseAllows 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.
booleantrueEnables development warnings and disables production optimizations.
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.
string"ios"Either "ios" or "android".
booleanfalseRemoves cached files.
stringStores stats in a file.
stringInstructs Webpack on how to treat the stats:
More details: Webpack documentation
string"[project_root]/webpack.config.mjs"Path to a Webpack config file.
Display help for the command.