BrowserSync / gulp-browser-sync

How to use the Browsersync module with gulp.
http://browsersync.io
384 stars 27 forks source link

BrowserSync not auto-refreshing browser #14

Closed niallobrien closed 10 years ago

niallobrien commented 10 years ago

Hi, I have the following Gulpfile: https://gist.github.com/niallobrien/11324771 BrowserSync reports that it's injected the changed styles into the browser, but I have to manually refresh to see the changes. Any suggestions? Thanks.

shakyShane commented 10 years ago

Are there any errors in the browser console after a file-change?

niallobrien commented 10 years ago

No errors, BrowserSync just doesn't refresh the browser after any changes. http://imgur.com/n2B3j7O

shakyShane commented 10 years ago

Can you remove any of these:

.pipe( browserSync.reload({ stream: true, once: true }) );

and do the one-time reload by passing reload method as a task like this:

gulp.watch( cfg.js.src, ['browserify', browserSync.reload] );

Let me know if that helps, it's the prefered way of doing a one-time reload now