rollup-plugin-livereload: live reload not working after first reload

Using the sveltejs template and running with npm run dev livereload stops working after first reload.

Issue persists after re-running npm run dev no logs from browser or terminal to suggest anything has gone wrong

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Even worst for me with svelte template: command exit (rollup -c -w) without any error.

Also tried different versions: 1.0.0, 1.1.0, 1.2.0. And different OS:

  • Windows. npm: 6.13.4, node: 12.16.1, rollup: 2.16.1
  • WSL Ubuntu. npm: 6.14.4, node: 13.13.0, rollup: 2.16.1

Removing livereload from the config solve the issue: command works fine.

I was wondering if it was only me but seems like I’m not alone: https://github.com/sveltejs/template/issues/133

Thanks for reading !

You can find the options here: https://www.npmjs.com/package/livereload

{ delay: 200 } could work for you.