Skip to content

Commit

Permalink
fix(storybook-framework-web-components): watch code changes and auto-…
Browse files Browse the repository at this point in the history
…reload by default
  • Loading branch information
bashmish committed May 16, 2024
1 parent 35e68f1 commit 589bad6
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 589bad6

Please sign in to comment.