Skip to content

Commit 51cbf79

Browse files
authored
Merge pull request #2735 from modernweb-dev/fix/storybook-wc-watch-by-default
fix(storybook-framework-web-components): watch code changes and auto-reload by default
2 parents 35e68f1 + 589bad6 commit 51cbf79

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)