cargo ux serve

This is a Draft Version

Builds and serves your app, rebuilding on file changes.

cargo ux serve <project> [options]
cargo ux s <project> [options]

Arguments

ArgumentDescriptionValue Type
projectThe name of the project to build. Can be an application or a library.string

Options

OptionDescriptionValue TypeDefault Value
--allowed-hostsList of hosts that are allowed to access the dev server.array
--browser-targetA browser builder target to serve in the format of project:target[:configuration]. You can also pass in more than one configuration name as a comma-separated list. Example: project:target:production,staging.string
--configurationOne or more named builder configurations as a comma-separated list as specified in the "configurations" section of ux.yaml. The builder uses the named configurations to run the given target. For more information, see https://angular-rust.github.io/guide/workspace-config#alternate-build-configurations. Setting this explicitly overrides the "--prod" flag. Aliases: -cstring
--disable-host-checkDon't verify connected clients are part of allowed hosts.booleanfalse
--helpShows a help message for this command in the console.true|false|jsonfalse
--hmrEnable hot module replacement.booleanfalse
--hostHost to listen on.stringlocalhost
--live-reloadWhether to reload the page on change, using live-reload.booleantrue
--openOpens the url in default browser. Aliases: -obooleanfalse
--pollEnable and define the file watching poll time period in milliseconds.number
--portPort to listen on.number4200
--prodShorthand for "--configuration=production". Set the build configuration to the production target. By default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination.boolean
--proxy-configProxy configuration file.string
--public-hostThe URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies.string
--serve-pathThe pathname where the app will be served.string
--sslServe using HTTPS.booleanfalse
--ssl-certSSL certificate to use for serving HTTPS.string
--ssl-keySSL key to use for serving HTTPS.string
--verboseAdds more details to output logging.boolean
--watchRebuild on change.booleantrue