Storybook: Allow to create a production build

Created on 31 Mar 2016  路  5Comments  路  Source: storybookjs/storybook

Right now, we need to run storybook locally via something like npm run storybook. But, it'd be great, if we can build the final HTML and share it anywhere.

So it'll be something like npm run storybook-build.

Then it'll create a directory in your project and you can upload those HTML file to anywhere you want and share your stories.

feature request

Most helpful comment

Almost done just need to cleanup the code a bit.

All 5 comments

Almost done just need to cleanup the code a bit.

I have a working version here. I'm not that familiar with webpack so someone should take a look.

This is implemented.

I found this issue looking for documentation, if this is implemented, can anybody post a link to the documentation? Thank you!

@adyz https://storybook.js.org/basics/exporting-storybook/

{
  "scripts": {
    "storybook": "build-storybook -c .storybook -o .out"
  }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilyaulyanov picture ilyaulyanov  路  100Comments

hckhanh picture hckhanh  路  69Comments

Gongreg picture Gongreg  路  58Comments

firaskrichi picture firaskrichi  路  61Comments

Olian04 picture Olian04  路  78Comments