Lucas Araujo
Lucas Araujo

Reputation: 1688

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

Upvotes: 1

Views: 2847

Answers (2)

jeren_yaoye_lu
jeren_yaoye_lu

Reputation: 73

Just add the command "--watch" when using the command line.

Like this:

browser-sync start --server --watch --files "*"

Upvotes: 4

Lucas Araujo
Lucas Araujo

Reputation: 1688

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
    });
});

Upvotes: 1

Related Questions