Open browser automatically on run
See original GitHub issueHi, 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:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?@shilman are you into adding this as an option to storybook itself? I’d be down to work on it 😃