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.

Open browser automatically on run

See original GitHub issue

Hi, I’m trying to use the open-browser-webpack-plugin to launch my storybook in the browser as soon as it’s ready. However, when I use this plugin, the server hangs and doesn’t render anything.

I opened an issue on that repo as well because I’m not sure where the problem lies. (My suspicion is that it’s something in the way that plugin unregisters after build conflicting with the HMR plugin?)

Here’s the webpack config I’m using in my storybook:

const OpenBrowserPlugin = require('open-browser-webpack-plugin');

module.exports = {
  plugins: [
    new OpenBrowserPlugin({url: 'http://localhost:9001/'})
  ]
};

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
ericandrewlewiscommented, Jun 6, 2017

Hey there,

the Webpack team added this option to webpack-dev-server which I think is swell. Maybe Storybook can do similar? so then start-storybook --open could open the browser automatically on start?

1reaction
ericandrewlewiscommented, Jun 21, 2017

@shilman are you into adding this as an option to storybook itself? I’d be down to work on it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser Launches Automatically on Windows? 5 Possible Fixes
Browser Launches Automatically on Windows? 5 Possible Fixes · 1. Remove Script Viruses In Safe Mode · 2. Disable Extensions and Remove Popups...
Read more >
Open browser automatically when Python code is executed
Use timer to start new thread to open web browser. import webbrowser from threading import Timer from flask import Flask app ...
Read more >
How to open a URL in the browser automatically with Node
Child processes. A process is an instance of a computer program running on your operating system. It contains the program code and its...
Read more >
Auto open browser when run dev #13448 - vercel/next.js
We're not planning to add automatically opening the browser at this point (keeping the CLI minimal and features contained). View full answer ...
Read more >
How to automatically launch websites at startup in Chrome.
Save lots of time. You can set your computer to open Chrome and launch any website you want at startup so you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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