Skip to content
New issue

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

[fr] server: open once #1666

Closed
ghost opened this issue Jan 23, 2021 · 2 comments
Closed

[fr] server: open once #1666

ghost opened this issue Jan 23, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 23, 2021

Is your feature request related to a problem? Please describe.
Are these two things do the same?

// package.json
  "scripts": {
    "dev": "vite --open"
  },

and

// vite.config.js
export default {
  server: {
    open: true
  }
}

Describe the solution you'd like
I'd like to open it once but not multiple browser windows on every config change. Rather refresh the existing window instead.

@ghost ghost changed the title [fr] serever: open once [fr] server: open once Jan 23, 2021
@yyx990803
Copy link
Member

yyx990803 commented Jan 23, 2021

That's a known limitation - the only browser/OS combo that supports it is Chrome on macOS. If anyone knows how to get it work on other systems, a PR is welcome.

@ghost
Copy link
Author

ghost commented Feb 10, 2021

fixed in #1952

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant