storybook/examples/standalone-preview
Michael Shilman a44240e420 v5.3.0-rc.11
2020-01-07 21:55:35 +08:00
..
2019-12-23 14:42:01 +08:00
2020-01-07 21:55:35 +08:00
2019-12-23 14:43:15 +08:00
2019-12-23 14:43:15 +08:00

Standalone Preview

This project demonstrates a preview running in standalone mode using parcel.

To run the standalone preview:

yarn storybook

This starts a parcel dev server on port 1337.

To view the stories in the storybook UI:

cd ../official-storybook
yarn storybook --preview-url=http://localhost:1337/iframe.html

This runs the Storybook dev server, but instead of showing official-storybook's stories, it attaches to the parcel dev server, lists its stories in the navigation, and shows its stories in the preview iframe.