@nx/rspack:dev-server

Run @rspack/dev-server to serve a project.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Options

buildTarget

Required
string

The build target for rspack.

host

string
Default: localhost

Host to listen on.

mode

string
Accepted values: development, production, none

Mode to run the server in.

port

number

The port to for the dev-server to listen on.

publicHost

string

Public URL where the application will be served.

ssl

boolean
Default: false

Serve using HTTPS.

sslKey

string

SSL key to use for serving HTTPS.

sslCert

string

SSL certificate to use for serving HTTPS.