Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 760 Bytes

storybook.md

File metadata and controls

32 lines (22 loc) · 760 Bytes

Using Storybook

You can demo your changes by running the storybook demo locally with the following commands:

yarn install
yarn build
yarn storybook

Tips

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

Instead of

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

which will point to the transpiled code.

Do refer to src

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.