Skip to content

Commit

Permalink
docs: update storybook doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 26, 2021
1 parent 2e607e7 commit 1f70765
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,24 @@ Alternatively, you can demo your changes by using the following command while in
```sh
yarn storybook
```

### Tips

When developing, if you would like to see live changes in Storybook.

Instead of

```js
import { xxx } from '@superset-ui/plugin-chart-horizon';
```

which will point to the transpiled code.

Do refer to `src`

```js
import { xxx } from '@superset-ui/plugin-chart-horizon/src'
```

Then after you are satisfied with all the changes, `yarn build` the entire project and remove `/src` from the `import` statement and check Storybook again. This rarely happens, but the minification sometimes can cause issue and you may see different results ranging from crashing to different behavior.

0 comments on commit 1f70765

Please sign in to comment.