Skip to content
DocsTry Aspire
DocsTry

withViteConfig

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface ViteAppResource {
// ... 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
configPathstring
ViteAppResource

Applies to

This method applies to the following types: