mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
- Add `babelDefault` and `managerHead` pages - Fix broken links - Clarify when some properties are primarily used by addon authors - Document simplified options for `babel`, `babelDefault`, `viteFinal`, and `webpackFinal` - Add description for `core.channelOptions` - Remove the `previewMainTemplate` page - Document possible shortcomings of some `stories` configurations - Document limitations of some `typescript` options
27 lines
627 B
Markdown
27 lines
627 B
Markdown
---
|
|
title: 'webpackFinal'
|
|
---
|
|
|
|
Parent: [main.js|ts configuration](./main-config.md)
|
|
|
|
Type: `async (config: Config, options: WebpackOptions) => Config`
|
|
|
|
Customize Storybook's Webpack setup when using the [webpack builder](../builders/webpack.md).
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<CodeSnippets
|
|
paths={[
|
|
'common/main-config-webpack-final.js.mdx',
|
|
'common/main-config-webpack-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.
|