Skip to content

The @nx/rsbuild plugin provides various generators to help you create and configure rsbuild projects within your Nx workspace. Below is a complete reference for all available generators and their options.

configuration

Rsbuild configuration generator.

Usage:

Terminal window
nx generate @nx/rsbuild:configuration [options]

Arguments:

Terminal window
nx generate @nx/rsbuild:configuration <project> [options]

Options

OptionTypeDescriptionDefault
devServerPortnumberThe port for the dev server to listen on.4200
entrystringPath relative to the workspace root for the entry file. Defaults to ‘/src/index.ts’.
skipFormatbooleanSkip formatting files.false
targetstringTarget platform for the build, same as the Rsbuild output.target config option."web"
tsConfigstringPath relative to the workspace root for the tsconfig file to build with. Defaults to ‘/tsconfig.app.json’.
## Getting Help
You can get help for any generator by adding the `--help` flag:
```bash
nx generate @nx/rsbuild:<generator> --help
```