Skip to content

Commit

Permalink
Merge pull request #2735 from modernweb-dev/fix/storybook-wc-watch-by…
Browse files Browse the repository at this point in the history
…-default

fix(storybook-framework-web-components): watch code changes and auto-reload by default
  • Loading branch information
thepassle authored May 16, 2024
2 parents 35e68f1 + 589bad6 commit 51cbf79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-dodos-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@web/storybook-framework-web-components': patch
---

watch code changes and auto-reload by default
7 changes: 7 additions & 0 deletions packages/storybook-framework-web-components/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ export const core: PresetProperty<'core', StorybookConfig> = {
builder: '@web/storybook-builder',
renderer: '@storybook/web-components',
};

export const wdsFinal: StorybookConfig['wdsFinal'] = wdsConfig => {
return {
...wdsConfig,
watch: true,
};
};

0 comments on commit 51cbf79

Please sign in to comment.