lbarros lbarros - 1 month ago 20
Javascript Question

Browser-sync not watching files

I am having problems with browser-sync. When I first installed, it was working, but now it no longer refreshs my index page when I make modifications to it and save. I noticed that when I start browser-sync, it no longer show the "[BS]Watching files..." message.

Have I missed any steps?

Prompt output



enter image description here

Answer

Blisk browser was a great option, as suggested by Darren, but now it is paid. Got browser sync working with gulp as suggested by this discussion https://github.com/BrowserSync/browser-sync/issues/646

Config:

gulp.task('browserSync', function() {
      browserSync.init({
          open: 'external',
          host: 'coolab.dev',
          proxy: 'coolab.dev/dashboard', 
          port: 3000
    });
});