Skip to content

Commit c4a13ae

Browse files
Update README.md
Use `add` command to add the addon to Storybook
1 parent 3e44410 commit c4a13ae

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,7 @@ This addon adds SWC support to Storybook's webpack5 compiler. It adds the swc-lo
55
## Installation
66

77
```sh
8-
npm install --save-dev @storybook/addon-webpack5-compiler-swc
9-
```
10-
11-
## Usage
12-
13-
```js
14-
// .storybook/main.js
15-
16-
const config = {
17-
addons: ["@storybook/addon-webpack5-compiler-swc"],
18-
};
19-
20-
export default config;
8+
npx storybook@latest add @storybook/addon-webpack5-compiler-swc
219
```
2210

2311
## Configuration

0 commit comments

Comments
 (0)