Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Multiple static dirs #229

Closed
zvictor opened this issue Jun 3, 2016 · 3 comments
Closed

[Feature] Multiple static dirs #229

zvictor opened this issue Jun 3, 2016 · 3 comments

Comments

@zvictor
Copy link
Contributor

zvictor commented Jun 3, 2016

In my project I have multiple packages adding static files to it from different places.
Besides my own files at /public I have, for example, semantic-ui adding fonts and icons from a different location. With Storybook I can only serve one of them by pointing to a single location.

Can we change the --static-dir [dir-name] option to accept multiple folders instead of just one ?

@thani-sh
Copy link
Contributor

thani-sh commented Jun 6, 2016

Released v1.29.0

Now it'll accept multiple static directories separated by commas.
Thanks for submitting the issue.

@zvictor
Copy link
Contributor Author

zvictor commented Jun 6, 2016

Thank you! You guys are always fast and very supportive 🏄

@eddybrando
Copy link
Contributor

This is now documented in the docs:

-s, --static-dir <dir-names> Directory where to load static files from, comma-separated list

Source: https://storybook.js.org/configurations/cli-options/

And here is a small example of how this could look like in your scripts object, in case anybody finds it helpful:

"storybook": "start-storybook -s ./static-foo,./static-bar -p 9001"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants