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

Using {open} option with watch re-opens browsers every change #57

Open
patrick-tolosa opened this issue Apr 7, 2020 · 1 comment
Open

Comments

@patrick-tolosa
Copy link

When you configure serve like this

serve({
   open:true
})

and use rollup with watch mode
rollup -c -w

A browser will open every time a change is made.
Can we configure this somehow? Happy to PR if I could get a pointer to the right direction

@thgh
Copy link
Owner

thgh commented Apr 11, 2020

One possible fix could be: this running variable should be moved up to let server
https://github.com/thgh/rollup-plugin-serve/blob/master/src/index.js#L75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants