@nx/rspack:configuration

Rspack configuration generator.

Usage

1nx generate configuration ... 2

By default, Nx will search for configuration in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/rspack:configuration ... 2

Show what will be generated without writing to disk:

1nx g configuration ... --dry-run 2

Options

project

Required
string

The name of the project.

framework

uiFramework
string
Accepted values: none, react, web, nest

The framework used by the project.

main

string

Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/main.ts'.

tsConfig

string

Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.app.json'.

buildTarget

string

The build target of the project to be transformed to use the @nx/vite:build executor.

devServer

boolean
Default: false

Add a serve target to run a local rspack dev-server

newProject

Hidden
boolean
Default: false

Is this a new project?

overwriteConfig

boolean
Default: true

Whether to overwrite the existing rspack.config.js file

style

string
Accepted values: none, css, scss, less

The style solution to use.

serveTarget

string

The serve target of the project to be transformed to use the @nx/vite:dev-server and @nx/vite:preview-server executors.

target

string
Default: web
Accepted values: node, web

Target platform for the build, same as the rspack config option.

rootProject

Internal
boolean

No description available.