Give preset the ability to inject content in preview/manager head
See original GitHub issueIs your feature request related to a problem? Please describe. To use storybook in multiple projects for my environment, I need to inject custom tags in head (mostly scripts tags with company wide shared libraries).
Describe the solution you’d like To make it easy for everyone to use it I thought about creating a preset for that (and other needed customization).
Describe alternatives you’ve considered
I though about creating a new storybook “platform” (like @storybook/html
, @storybook/react
) but this seems very involved and my understanding is that presets are more likely to be the future.
The other alternative would be to ask everyone to configure a .storybook/preview-head.html
in their respective projects 😢
Are you able to assist bring the feature to reality? yes, I can…
Additional context Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top GitHub Comments
@shilman I got it working. Thank you for your quick responses and thoughtful workarounds!
There’s an “entries” export that does the same thing for the preview