Usage
dist/.
Options
| Flag | Description | Default |
|---|---|---|
--sourcemap | Emit source maps alongside the build for debugging | false |
--profile | Print profiling hints (alias: --analyze) | false |
--compress | Emit Brotli-compressed .br assets for CDN delivery | false |
-h, --help | Show usage information | - |
--analyze is deprecated but works as an alias of --profile.
What it does
- Generates runtime assets in
.linkapp/and builds with Rsbuild in production mode. - Copies
public/intodist/and, if present, copiesapp/icon.svgtodist/icon.svg. - Writes content-hashed JS/CSS/assets plus
build-manifest.jsonfor asset mapping. - Prints a size summary (raw plus gzip/Brotli estimates for JS/CSS).
- When profiling is requested, reminds you to inspect the bundle with your preferred tooling.
Output
.br files appear alongside JS/CSS when you pass --compress.
Working with source maps
Use--sourcemap when you need to debug production errors:
Profiling and analysis
--sourcemap for more detail.
When builds fail
- Missing modules or typos: fix the import path or install the dependency.
- Static asset not found: ensure files referenced from
public/orapp/exist. - Large bundles: rebuild with
--sourcemapand inspect the emitted asset sizes to spot oversized dependencies.