Skip to content

Commit

Permalink
Add remark about autoreload for stories to README
Browse files Browse the repository at this point in the history
Today I spent some time trying to figure out why autoreload for story files doesn't work. This pull request adds remark to README about naming of story files for autoreload to work.

This is related to: storybookjs#53
  • Loading branch information
offlinehacker authored Jul 15, 2021
1 parent 7adf87a commit 899c38a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ yarn add --dev storybook-builder-vite
In your `main.js` configuration file,
set `core: { builder: "storybook-builder-vite" }`.

> For autoreload of stories to work, they need to have `.stories.tsx` file suffix.
> See also [#53](https://github.com/eirslett/storybook-builder-vite/pull/53)
### Customize Vite config

The builder will _not_ read your `vite.config.js` file by default.
Expand Down

0 comments on commit 899c38a

Please sign in to comment.