Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ViteAppResource.WithViteConfig

Method
📦 Aspire.Hosting.JavaScript v17.0.0
type ViteAppResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: