bud build production
bud build production
will compile your project source code into a distributable bundle.
$ bud build production --help
Compiles source assets in `production` mode.
━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ bud production
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
--basedir,--cwd #0 Set project base directory
--cache Utilize compiler's filesystem cache
--clean Clean artifacts and distributables prior to compilation
--color Colorize output
--debug Enable debug mode
--dry Run in dry mode
--filter #0 Limit command to particular bud instances
--force,--flush Force clearing all caches
--ignore-errors,--ignoreErrors Ignore errors
--input,-i,--@src,--src #0 Source directory (relative to project)
--log Enable logging
--output,-o,--@dist,--dist #0 Distribution directory (relative to project)
--notify Enable notification (default on macOS, experimental on other platforms)
--publicPath #0 Public path to serve assets from
--silent,-s silence stdout
--storage #0 Storage directory (relative to project)
--use #0 Enable an extension
--verbose Log verbose output
--browserslist-update Check for browserslist db updates at regular intervals.
--dashboard.assets Render compiled assets in dashboard
--dashboard.compact Render dashboard in compact mode
--dashboard.entrypoints Render compiled entrypoints in dashboard
--dashboard.server Render server information in dashboard
--dashboard Render dashboard components in CLI
--entrypoints.html Output html partial containing entrypoint scripts and styles
--ci Run in CI compatibility mode
--devtool,--source-map Set devtool option
--discover,--discovery Automatically register extensions
--editor Open editor to file containing errors on unsuccessful development build
--esm Compile to esm (experimental)
--hash Hash compiled filenames
--html Generate an html template
--immutable bud.http: immutable module lockfile
--lazy Lazy compilation
--minimize Minimize compiled assets
--runtime Set runtime chunk
--splitChunks,--split-chunks,--vendor Separate vendor bundle
━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
`bud build production` compiles source assets in `production` mode.
If you run this command without a bud configuration file `bud` will look for an
entrypoint at `@src/index.js`.
━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Compile source assets in `production` mode
$ bud build production