You will need to start the reboot yourself. I recommend a setup similar to this; Browse files for changes, run optimization tasks, and then call the reload method at the end of the pipeline. Something like that:
gulp.task('styles', function() {
return gulp.src('assets/sass/*.scss')
.pipe(sass())
.pipe(csso())
.pipe(gulp.dest('web/css'))
.pipe(browserSync.reload({stream:true}));
});
gulp.task('browser-sync', function() {
browserSync.init(null, {
server: {
baseDir: './'
}
});
});
gulp.task('watch', ['browser-sync'], function() {
gulp.watch(['assets/sass/*.scss'], ['styles']);
});
Edit: To reload the HTML, use the following task:
gulp.task('watch', ['browser-sync'], function () {
gulp.watch("html/*.html", ['htmlTasks', browserSync.reload]);
});
: http://www.browsersync.io/docs/gulp/#gulp-reload