Skip to content

Commit

Permalink
chore(docs): Update Storybook instructions (#37321)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
trentschnee and LekoArts committed Jan 3, 2023
1 parent e9ab3f4 commit f8e8078
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/docs/how-to/testing/visual-testing-with-storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ npx sb upgrade
Add the following development dependencies to enable webpack 5 with Storybook:

```shell
npm i -D @storybook/builder-webpack5 @storybook/manager-webpack5
npm i @storybook/builder-webpack5 @storybook/manager-webpack5 --save-dev
```

Then, update your [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview) to the following:

```js:title=.storybook/main.js
module.exports = {
stories: [],
addons: [],
// highlight-start
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: "@storybook/react",
core: {
builder: "webpack5",
},
Expand Down

0 comments on commit f8e8078

Please sign in to comment.