We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want an option that will automatically open up the browser window when starting dev server or preview
dev
preview
I typically use --open in my package.json scripts but when trying to use this with Histoire it did not work.
--open
package.json
i.e.
"scripts": { "story:dev": "histoire dev --port 6006 --open", "story:build": "histoire build", "story:preview": "histoire preview --port 6006 --open" },
No response
The text was updated successfully, but these errors were encountered:
😆 , right after i submitted feature request i figured out how to do it.
Vite can do this easily from within the vite.config.js file
vite.config.js
export default defineConfig({ server: { open: '/' } })
https://vitejs.dev/config/server-options.html
Sorry, something went wrong.
you may or may not want to reimplement this functionality for histoire so i'll leave open for now
Or document it on the histoire config page :)
876161b
No branches or pull requests
Clear and concise description of the problem
I want an option that will automatically open up the browser window when starting
dev
server orpreview
I typically use
--open
in mypackage.json
scripts but when trying to use this with Histoire it did not work.Suggested solution
i.e.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: