Skip to content

when I change a script file, Browser Sync will reload 2 or 3 times #1067

@lialosiu

Description

@lialosiu

I using Jade and Coffee.

when I change the script file, browser reload 2 or 3 times, it make my computer lag.

and I try to change file glup/scripts.js task scripts-reload to

gulp.task('scripts-reload', function() {
  return buildScripts()
    .pipe(browserSync.stream({once: true}));
});

added {once: true} opt.

it just reload 1 time now, but sometime file change was not sync to browser, I need to press F5 to reload 1 more time by myself.

some one has any idea?

(sorry for my pool English...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions