I am starting live reload via Gulp:
var $$ = require('gulp-load-plugins')();
gulp.watch('*', function (file) {
$$.livereload().changed(file.path);
});
gulp.task('connect', function(){
var connect = require('connect');
return connect()
.use(require('connect-livereload')())
.use(connect.static(__dirname))
.listen(8000);
});
It had been working until I recently got this cryptic error in the browser console and reload stopped working:
Failed to load resource: net::ERR_CONNECTION_REFUSED
http://localhost:35729/livereload.js?snipver=1
Any idea what happens here?
I am behind proxy but localhost is excluded.
$$.livereload.changed(file.path);
– Titleholder