storybook/code/examples/standalone-preview
2022-09-07 11:16:32 +08:00
..
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00
2022-09-07 11:16:32 +08:00
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00

Standalone Preview

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

To run the standalone preview:

yarn storybook-preview

This starts a parcel dev server on port 1337.

To view the stories in the storybook UI:

yarn storybook

This runs the Storybook dev server (Found in ../official-storybook), 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.

NOTE: This can be run from any working storybook, not just official-storybook!