mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
docs: fix code snippet types and make npm/yarn snippet consistent
This commit is contained in:
parent
4a41cf65a9
commit
13069256cf
10
MIGRATION.md
10
MIGRATION.md
@ -168,16 +168,20 @@ Storybook 6.2 introduced **experimental** webpack5 support for building user com
|
|||||||
|
|
||||||
If you're upgrading from 6.2 and already using the experimental webpack5 feature, this might be a breaking change (hence the 'experimental' label) and you should try adding the manager builder:
|
If you're upgrading from 6.2 and already using the experimental webpack5 feature, this might be a breaking change (hence the 'experimental' label) and you should try adding the manager builder:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
yarn add @storybook/manager-webpack5 --dev
|
yarn add @storybook/manager-webpack5 --dev
|
||||||
|
# Or
|
||||||
|
npm install @storybook/manager-webpack5 --save-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### Angular 12 upgrade
|
### Angular 12 upgrade
|
||||||
|
|
||||||
Storybook 6.3 supports Angular 12 out of the box when you install it fresh. However, if you're upgrading your project from a previous version, you'll need to do the following steps to force Storybook to use webpack 5 for building your project:
|
Storybook 6.3 supports Angular 12 out of the box when you install it fresh. However, if you're upgrading your project from a previous version, you'll need to do the following steps to force Storybook to use webpack 5 for building your project:
|
||||||
|
|
||||||
```js
|
```shell
|
||||||
npm install @storybook/builder-webpack5 --save-dev # or yarn
|
yarn add @storybook/builder-webpack5 --dev
|
||||||
|
# Or
|
||||||
|
npm install @storybook/builder-webpack5 --save-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Then edit your `.storybook/main.js` config:
|
Then edit your `.storybook/main.js` config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user