Usage
nx generate configuration ...
By default, Nx will search for configuration in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/rspack:configuration ...
Show what will be generated without writing to disk:
nx g configuration ... --dry-run
Options
project
The name of the project.
framework
none, react, web, nestThe framework used by the project.
main
Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/main.ts'.
tsConfig
Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.app.json'.
buildTarget
The build target of the project to be transformed to use the @nrwl/vite:build executor.
devServer
falseAdd a serve target to run a local rspack dev-server
newProject
falseIs this a new project?
style
none, css, scss, lessThe style solution to use.
serveTarget
The serve target of the project to be transformed to use the @nrwl/vite:dev-server and @nrwl/vite:preview-server executors.
target
webnode, webTarget platform for the build, same as the rspack config option.
rootProject
No description available.