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:
boolean
Increase logging verbosity.
string
Directory name where to store assets referenced in the bundle.
string
Path to the root JS file, either absolute or relative to JS root.
boolean
false
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.
boolean
true
Enables development warnings and disables production optimizations.
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
"ios"
Either "ios" or "android".
boolean
false
Removes cached files.
string
Stores stats in a file.
string
Instructs 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.