Skip to content

Commit 589bad6

Browse files
committed
fix(storybook-framework-web-components): watch code changes and auto-reload by default
1 parent 35e68f1 commit 589bad6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/hot-dodos-push.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web/storybook-framework-web-components': patch
3+
---
4+
5+
watch code changes and auto-reload by default

packages/storybook-framework-web-components/src/preset.ts

+7
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ export const core: PresetProperty<'core', StorybookConfig> = {
55
builder: '@web/storybook-builder',
66
renderer: '@storybook/web-components',
77
};
8+
9+
export const wdsFinal: StorybookConfig['wdsFinal'] = wdsConfig => {
10+
return {
11+
...wdsConfig,
12+
watch: true,
13+
};
14+
};

0 commit comments

Comments
 (0)