question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to create a production build

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:16
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
thani-shcommented, Apr 8, 2016

Almost done just need to cleanup the code a bit.

1reaction
crashuniversecommented, Jul 24, 2018

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

{
  "scripts": {
    "storybook": "build-storybook -c .storybook -o .out"
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a Production Build - Create React App
npm run build creates a build directory with a production build of your app. Inside the build/static directory will be your JavaScript and...
Read more >
Reactjs Build Production: Optimize Performance - CopyCat Blog
In this article, we will be taking a deep dive into the Reactjs build production, deployment, and tips on optimising your app's performance....
Read more >
How to tell ReactJS to build project in Production mode
Step 1: Open terminal and run the following command to create project folder of the react application: npx create-react-app myapp · Step 2:...
Read more >
Optimizing Performance - React
Use the Production Build. If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production...
Read more >
How to create a production build of a create react app?
This is due to CMD ["npm", "start"] . It basically uses the webpack-dev-server and your docker image is build in the development environment....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found