Back to Storybook

webpackFinal

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

10.3.6464 B
Original Source

Parent: main.js|ts configuration

Type: async (config: Config, options: WebpackOptions) => Config

Customize Storybook's Webpack setup when using the webpack builder.

<CodeSnippets path="main-config-webpack-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.