storybook/docs/api/main-config-static-dirs.md
Kyle Gach 92c7faa69f Simplify presentation of properties
- # config.core -> # core
- ## `config.core.builder` -> ## `builder`
- Add "Parent: [main.js|ts configuration](./Overview.md)"
- Update TOC menu title
2023-05-23 14:15:53 -06:00

846 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/storybook-main-with-multiple-static-dir.js.mdx', 'common/storybook-main-with-multiple-static-dir.ts.mdx', ]} />

With configuration objects

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

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