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 @nrwl/rspack:configuration ...
Show what will be generated without writing to disk:
nx g configuration ... --dry-run
Options
project
Required
string
The name of 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'.
devServer
boolean
Default:
falseAdd a serve target to run a local rspack dev-server
style
string
Accepted values:
none, css, scss, lessThe style solution to use.
target
string
Default:
webAccepted values:
node, webTarget platform for the build, same as the rspack config option.
uiFramework
string
Accepted values:
none, reactThe UI framework used by the project.