Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Storybook preview (wrapper) to test separate standalone Storybook instance

Notifications You must be signed in to change notification settings

basher/parcel-boilerplate-storybook-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This repo is no longer maintained.
  • A different solution has been found to using Parcel to bundle CSS/JS, and using Storybook HTML.

This is a 'wrapper' Storybook instance

It provides the standard Storybook UI, but loads story content from another Storybook repo (which uses Parcel to bundle CSS/JS dependencies).

  • From the other Storybook/Parcel repo, start Storybook npm run storybook.
  • Then start this repo's Storybook instance npm run storybook:preview.
  • Accept the localhost port change with Y if prompted.

Storybook composition

  • npm run storybook instead of using :preview as above.
  • This is the new composition feature in V6, which leverages the refs property in main.js.

Storybook / Parcel bugs

Storybook preview

  • Content from the other Storybook/Parcel repo cannot be loaded in preview mode as it's no longer supported in Storybook V6.

Storybook composition

  • Content from the other Storybook/Parcel repo cannot be loaded via composition. See this composition bug.

About

Storybook preview (wrapper) to test separate standalone Storybook instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published