0

I am using grunt. Under watch task I have livereload set to true. Whenever I make a change it automatically refreshes my browser at current URL. Is there anyway to force it to refresh it to home page instead of current url?

webdev
  • 598
  • 5
  • 16

1 Answers1

0

If you roll your own livereloading in your gruntfile as described here, you can then trigger a reload of the homepage like this:

lrserver.changed({body:{files:['index.html']}});
Claus Conrad
  • 512
  • 7
  • 14