Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithViteConfig

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (ViteAppResource) WithViteConfig(configPath string) ViteAppResource

Signature

methodWithViteConfigbuilder
Configures the Vite app to use the specified Vite configuration file instead of the default resolution behavior.
WithViteConfig(configPath string) ViteAppResource
configPathstringThe path to the Vite configuration file. Relative to the Vite service project root.
ViteAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: