mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
802 B
802 B
title |
---|
config.staticDirs |
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', ]} />