gulp-community / gulp-livereload

gulp plugin for livereload
768 stars 67 forks source link

Equivalent for refresh on change #54

Closed barbuslex closed 9 years ago

barbuslex commented 9 years ago

Hi,

Can you tell me the equivalent code for the new version of gulp-livereload :

var server = livereload();
  gulp.watch(dest + '/**').on('change', function(file) {
      server.changed(file.path);
  });

When i use it i take this error message :

server.changed(file.path); -----------^ TypeError: Object # has no method 'changed'

How can i solve it ?

Thanks

cyrusdavid commented 9 years ago
livereload.listen();
gulp.watch(dest + '/**').on('change', livereload.changed);
barbuslex commented 9 years ago

Thanks so much <3

wcoding commented 9 years ago

Thank you vohof, I have a similar case.

LukyVj commented 9 years ago

Thank you @vohof !