gulp-community / gulp-livereload

gulp plugin for livereload
768 stars 67 forks source link

Stylesheet broken after Livereload #106

Closed daslicht closed 8 years ago

daslicht commented 8 years ago

Hello, I've followed this tutorial here:

http://jpsierens.com/tutorial-livereload-nodemon-gulp/

Thats my Task:

gulp.task('default', function() {
    // listen for changes
    livereload.listen();
    // configure nodemon
    nodemon({
        // the script to run the app
        script: './bin/www',
        ext: 'js'
    }).on('restart', function(){
        // when the app has restarted, run livereload.
        gulp.src('app.js')
            .pipe(livereload());
            //.pipe(notify('Reloading page, please wait...'));
    })
})

The browser reloads as expected on file change, but the stylesheet is broken after automatic reload. The console shows:

GET http://localhost:3000/stylesheets/style.css net::ERR_CONNECTION_REFUSED

If I manually refresh the browser its back again.

idea?

leo commented 8 years ago

Hey, @daslicht ! 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.

daslicht commented 8 years ago

thank you for the info