storybook/docs/api/main-config-static-dirs.md
Kyle Gach 1d3262ee62 Address comments:
- 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
2023-05-23 14:15:53 -06:00

785 B

title
staticDirs

Parent: main.js|ts configuration

Type: (string | { from: string; to: string })[]

Sets a list of directories of static files to be loaded by Storybook.

<CodeSnippets paths={[ 'common/main-config-static-dirs.js.mdx', 'common/main-config-static-dirs.ts.mdx', ]} />

With configuration objects

You can also use a configuration object to define the directories:

<CodeSnippets paths={[ 'common/main-config-static-dirs-with-object.js.mdx', 'common/main-config-static-dirs-with-object.ts.mdx', ]} />