mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
25 lines
619 B
Plaintext
25 lines
619 B
Plaintext
---
|
|
title: 'viteFinal'
|
|
sidebar:
|
|
order: 22
|
|
title: viteFinal
|
|
---
|
|
|
|
Parent: [main.js|ts configuration](./main-config.mdx)
|
|
|
|
Type: `(config: Vite.InlineConfig, options: Options) => Vite.InlineConfig | Promise<Vite.InlineConfig>`
|
|
|
|
Customize Storybook's Vite setup when using the [Vite builder](../../builders/vite.mdx).
|
|
|
|
{/* prettier-ignore-start */}
|
|
|
|
<CodeSnippets path="main-config-vite-final.md" />
|
|
|
|
{/* 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.
|