Skip to content

A reproduction of the storybook docs bug that causes the production build to not show component documentation

Notifications You must be signed in to change notification settings

emanguy/storybook-docs-bug-repro

Repository files navigation

Storybook Docs Bug Repro

This project was generated with Angular CLI version 10.2.1.

Reproducing the bug

You can see the bug in action by doing the following:

  1. Run npm run storybook to start the storybook dev server. Look at the docs page for "sample storybook component", the docs will be there:

Working Docs

  1. Build static content for storybook via npm run build-storybook
  2. Serve the page with a simple HTTP server (I used docker run --rm -v `pwd`/storybook-static/:/usr/share/nginx/html:ro -p 3000:80 --name=storybook-content -d nginx:latest from the project root) and the docs will not show.

Not working docs

  1. Uncomment the minimize: true line in main.js, then repeat steps 2 and 3. The docs will appear when the content is not minified.

About

A reproduction of the storybook docs bug that causes the production build to not show component documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published