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 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

--notify Enable notification (default on macOS, experimental on other platforms)
--debug Enable debug mode
--verbose Log verbose output
--mode #0 Compilation mode
--filter #0 Limit command to particular compilers
--cache Utilize compiler's filesystem cache
--clean Clean artifacts and distributables prior to compilation
--devtool #0 Set devtool option
--editor Open editor to file containing errors on unsuccessful development build
--esm build as es modules
--flush,--force Force clearing bud internal cache
--hash Hash compiled filenames
--html Generate an html template
--immutable bud.http: immutable module lockfile
--discover,--discovery Automatically register extensions
--manifest Generate a manifest of compiled assets
--minimize Minimize compiled assets
--input,-i,--@src,--src #0 Source directory (relative to project)
--output,-o,--@dist,--dist #0 Distribution directory (relative to project)
--publicPath #0 public path of emitted assets
--runtime Set runtime chunk
--splitChunks,--vendor Separate vendor bundle
--storage #0 Storage directory (relative to project)
--ci Simple build summaries for CI
--use #0 Enable an extension

━━━ 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`.

━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

compile source assets
$ bud build