Back to Storybook

viteFinal

docs/api/main-config/main-config-vite-final.mdx

10.3.6490 B
Original Source

Parent: main.js|ts configuration

Type: (config: Vite.InlineConfig, options: Options) => Vite.InlineConfig | Promise<Vite.InlineConfig>

Customize Storybook's Vite setup when using the Vite builder.

<CodeSnippets path="main-config-vite-final.md" />

Options

Type: { configType?: 'DEVELOPMENT' | 'PRODUCTION' }

There are other options that are difficult to document here. Please introspect the type definition for more information.