Spread the love
how to remove storybook banner

Short answer: There is no that simple “remove” command to remove storybook from project.

Why they don’t have command?

It is because Storybook doesn’t know where your stories are until runtime. So, it’s hard to know exactly what to delete. Also users sometimes have multiple storybooks in 1 repo which makes it way more complicated. Adding files is usually safer then removing. It might remove something that the user can’t recover from.

How to remove it then?

Follow these steps to delete storybook from your project.

  • First delete your stories and the .storybook folder
  • Then delete the scripts added to package.json
  • After that, delete all storybook related dependencies from package.json
  • Finally run yarn or npm to update the lockfile

You can my answer on stackoverflow

Contribute on my react quantity picker npm package


Leave a Reply

Your email address will not be published. Required fields are marked *