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

miljan-aleksic picture miljan-aleksic  路  3Comments

sakulstra picture sakulstra  路  3Comments

rpersaud picture rpersaud  路  3Comments

shilman picture shilman  路  3Comments

oriSomething picture oriSomething  路  3Comments