gulp-community / gulp-livereload

gulp plugin for livereload
768 stars 67 forks source link

How to enable livereload for current page without specifying the 'file' in livereload.reload([file])? #117

Open calvinchankf opened 8 years ago

calvinchankf commented 8 years ago

Hi,

I used gulp-livereload on SPA, it worked fine. But when I try it in a multiple pages project(i use exprees router), I can't find a easy way to make it livereload.

e.g. When I am debugging on route http://localhost:xxxx/peter/, I have to manually set the reload path i.e. livereload.reload('/peter'), in order to make it livereload upon every css/js/ejs changes.

is there any better way that the browser will automatically reload the current path when i am reaching?