gulp-livereload
gulp-livereload copied to clipboard
Livereload keep listening to the port after gulp exits for errors
Every time there is an error and gulp exit, I should type "netstat -peanut | grep 8080" and find the listening process and kill it, otherwise I'm unable to start my gulp tasks again.
Is there any workaround available for this issue?
+1
I managed to solve the problem by using plumber for error handling in the first stream of my livereload task. It will handle to exit the process properly.
var plumber = require('gulp-plumber');
....
.pipe(plumber())
.
.
.
.pipe(livereload());
thanks @p0o
I am running into this as well, it seems livereload is keeping our gulp tasks open in webstorm.
Hey, @p0o ! Just wanted to let you know that I've created a standalone fork of this repo, since it doesn't seem to be maintained anymore. You can find it here.
So I might be a good idea to re-open this issue there.
@leo Thank you for the hint. We dropped Livereload alongside with the whole gulp task runners from our project and replaced them with NPM scripts and Webpack. You may open it yourself since I'm not an active user anymore.