mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 18:41:06 +08:00
commit
e81d57020b
@ -104,6 +104,6 @@ Alternatively if you want to inject a CSS link tag to the `<head>` directly (or
|
||||
|
||||
## Load assets and resources
|
||||
|
||||
If you want to link to static files in your project or stories (e.g. `/fonts/XYZ.woff`), use the `-s path/to/folder` to specify a static folder to serve from when you start up Storybook. To do so, edit the `storybook` and `build-storybook` scripts in `package. json`.
|
||||
If you want to link to static files in your project or stories (e.g. `/fonts/XYZ.woff`), use the `-s path/to/folder` to specify a static folder to serve from when you start up Storybook. To do so, edit the `storybook` and `build-storybook` scripts in `package.json`.
|
||||
|
||||
We recommend serving external resources and assets requested in your components statically with Storybook. This ensures that assets are always available to your stories.
|
||||
|
Loading…
x
Reference in New Issue
Block a user