rollup-plugin-serve icon indicating copy to clipboard operation
rollup-plugin-serve copied to clipboard

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

Open patrick-tolosa opened this issue 4 years ago • 1 comments

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

patrick-tolosa avatar Apr 07 '20 12:04 patrick-tolosa

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

thgh avatar Apr 11 '20 14:04 thgh