web/app/themes/sasquatch/build/browsersync.js
// Watch for changes to static assets, pages, Sass, and JavaScript
Watch for changes to static assets, pages, Sass, and JavaScript
Watch for changes to static assets pages Sass and JavaScript
function watch() {
  gulp.watch(PATHS.assets, copy);
  gulp.watch('assets/scss/**/*.scss').on('all', sass);
  gulp.watch('assets/js/**/*.js').on('all', gulp.series(javascript, browser.reload));
  gulp.watch('assets/images/**/*').on('all', gulp.series(images, browser.reload));
  gulp.watch('views/**/*.twig').on('all', gulp.series(browser.reload));
}
function watch ( ) { gulp . watch ( PATHS . assets , copy ) ; gulp . watch ( 'assets/scss/**/*.scss' ) . on ( 'all' , sass ) ; gulp . watch ( 'assets/js/**/*.js' ) . on ( 'all' , gulp . series ( javascript , browser . reload ) ) ; gulp . watch ( 'assets/images/**/*' ) . on ( 'all' , gulp . series ( images , browser . reload ) ) ; gulp . watch ( 'views/**/*.twig' ) . on ( 'all' , gulp . series ( browser . reload ) ) ; }
Watch for changes to static assets, pages, Sass, and JavaScript
Watch for changes to static assets pages Sass and JavaScript