Skip to content
Docs Try Aspire
Docs Try

withViteConfig

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface ViteAppResource {
// ... omitted for brevity
withViteConfig(configPath: string): ViteAppResource;
}

Signature

method withViteConfig builder
Configures the Vite app to use the specified Vite configuration file instead of the default resolution behavior.
withViteConfig(configPath: string): ViteAppResource
configPath string
ViteAppResource

Applies to

This method applies to the following types: