We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adfc79c commit 99ad537Copy full SHA for 99ad537
.storybook/config.js
@@ -1,4 +1,12 @@
1
import { configure } from '@storybook/polymer';
2
3
// automatically import all files ending in *.stories.ts
4
-configure(require.context('../src', true, /\.stories\.ts$/), module);
+const req = require.context('../src', true, /\.stories\.ts$/);
5
+configure(req, module);
6
+if (module.hot) {
7
+ module.hot.accept(req.id, () => {
8
+ const currentLocationHref = window.location.href;
9
+ window.history.pushState(null, null, currentLocationHref);
10
+ window.location.reload();
11
+ });
12
+}
0 commit comments