Skip to main content

bud build

bud build will compile your project source code into a distributable bundle. If called directly it is an alias for bud build production

$ bud build --help
Compile source assets

━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$ bud build

━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

--basedir,--cwd #0 Set project base directory
--cache Utilize compiler's filesystem cache
--clean Clean artifacts and distributables prior to compilation
--color,-c 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
--log Enable logging
--mode #0 Compilation mode
--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 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
--input,-i,--@src,--src #0 Source directory (relative to project)
--lazy Lazy compilation
--minimize Minimize compiled assets
--notify Enable notification (default on macOS, experimental on other platforms)
--output,-o,--@dist,--dist #0 Distribution directory (relative to project)
--publicPath #0 Public path to serve assets from
--runtime Set runtime chunk
--splitChunks,--split-chunks,--vendor Separate vendor bundle

━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

`bud build production` compiles source assets in `production` mode. Run `bud
build production --help` for usage.

`bud build development` compiles source assets in `development` mode and serves
updated modules. Run `bud build development --help` for usage.

If you run this command without a configuration file `bud` will look for an
entrypoint at `@src/index.js`.