- Issue created by @yustinTR
- πΊπΈUnited States agentrickard Georgia (US)
See the README, quoted here.
If you want to monitor story changes to compile Twig stories into JSON, execute it with `watch`. Like so:
watch --color drush storybook:generate-all-stories
The watch package is standard on ddev and most Linux systems.
- Status changed to Closed: works as designed
4 months ago 2:35pm 11 July 2024 - First commit to issue fork.
- π¬π§United Kingdom rattusrattus
Possible the OP was asking hot we get storybook to reload when we make change to SDC twig\css\JS - something I am also thinking about...
- π¬π§United Kingdom rattusrattus
I guess this (unanswered) issue is relevant: https://github.com/storybookjs/storybook/discussions/15873
- π¬π§United Kingdom rattusrattus
Actually, the above not so relevant but this one is pretty much the same problem:
https://stackoverflow.com/questions/77044691/how-can-i-force-storybook-t... - π©πͺGermany fisherman90 Dortmund
+1 For this feature, been looking through the docs of storybook and webpack, but I cannot make out, how to tell them to hot-reload stories, when the CSS files change.
I tried to add the scss compilation to storybooks webpack-config, and got the compilation working, but it still did not trigger the reloading of the stories when needed.
If I remember right, hot-reloading was possible in the past with the drupal-storybook-addon - but I'm not 100% sure.
We either need to manually trigger the storybook reload - or find a way to tell it, that it should watch the files that are picked up as sdc-libraries automatically - and reload on changes of them.
Sadly without hot-reloading frontend-development with storybook is more painful than it needs to be :D