Skip to content

Commit

Permalink
Merge pull request #5 from storybookjs/Use-add-command-to-add-new-a…
Browse files Browse the repository at this point in the history
…ddon-to-Storybook

Update README.md
  • Loading branch information
valentinpalkovic committed Jan 17, 2024
2 parents de1d673 + a76c116 commit f6dd509
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,5 @@ This addon adds babel support to Storybook's webpack5 compiler. It adds the babe
## Installation

```sh
npm install --save-dev @storybook/addon-webpack5-compiler-babel
```

## Usage

```js
// .storybook/main.js

const config = {
addons: ["@storybook/addon-webpack5-compiler-babel"],
};

export default config;
npx storybook@latest add @storybook/addon-webpack5-compiler-babel
```

0 comments on commit f6dd509

Please sign in to comment.