Watch and reload when specific files change #15873
Unanswered
jodyheavener
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This feels like an already-answered question, so I apologize if I've missed something obvious 😅
I've got a unique Storybook setup where, upon opening, the story performs a fetch from a server, returning compiled HTML to be rendered in the story using
@storybook/html
.This works well, except for the fact that because Storybook itself is not aware of these server-rendered source files it does not hot-reload the stories when these files change.
I am wondering if there is a Storybook configuration, plugin, or NPM tool to help me watch for specific files/paths, and then force reload the active story when a change is detected. I have considered
nodemon
but it would need to kill and restart the entire storybook command, which is very heavy-handed.Is something like this possible?
Beta Was this translation helpful? Give feedback.
All reactions