mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
27 lines
647 B
Markdown
27 lines
647 B
Markdown
---
|
|
title: 'viteFinal'
|
|
---
|
|
|
|
Parent: [main.js|ts configuration](./main-config.md)
|
|
|
|
Type: `(config: Vite.InlineConfig, options: Options) => Vite.InlineConfig | Promise<Vite.InlineConfig>`
|
|
|
|
Customize Storybook's Vite setup when using the [Vite builder](../builders/vite.md).
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<CodeSnippets
|
|
paths={[
|
|
'common/main-config-vite-final.js.mdx',
|
|
'common/main-config-vite-final.ts.mdx',
|
|
]}
|
|
/>
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## `Options`
|
|
|
|
Type: `{ configType?: 'DEVELOPMENT' | 'PRODUCTION' }`
|
|
|
|
There are other options that are difficult to document here. Please introspect the type definition for more information.
|