gulpfile.babel.js
function watch() {
  gulp.watch('src/pages/**/*.html').on('all', gulp.series(pages, inline, browser.reload));
  gulp.watch(['src/layouts/**/*', 'src/partials/**/*']).on('all', gulp.series(resetPages, pages, inline, browser.reload));
  gulp.watch(['../scss/**/*.scss', 'src/assets/scss/**/*.scss']).on('all', gulp.series(resetPages, sass, pages, inline, browser.reload));
  gulp.watch('src/assets/img/**/*').on('all', gulp.series(images, browser.reload));
}
function watch() {
  gulp.watch('src/pages/**/*.html').on('all', gulp.series(pages, inline, browser.reload));
  gulp.watch(['src/layouts/**/*', 'src/partials/**/*']).on('all', gulp.series(resetPages, pages, inline, browser.reload));
  gulp.watch(['../scss/**/*.scss', 'src/assets/scss/**/*.scss']).on('all', gulp.series(resetPages, sass, pages, inline, browser.reload));
  gulp.watch('src/assets/img/**/*').on('all', gulp.series(images, browser.reload));
}
function watch ( ) { gulp . watch ( 'src/pages/**/*.html' ) . on ( 'all' , gulp . series ( pages , inline , browser . reload ) ) ; gulp . watch ( [ 'src/layouts/**/*' , 'src/partials/**/*' ] ) . on ( 'all' , gulp . series ( resetPages , pages , inline , browser . reload ) ) ; gulp . watch ( [ '../scss/**/*.scss' , 'src/assets/scss/**/*.scss' ] ) . on ( 'all' , gulp . series ( resetPages , sass , pages , inline , browser . reload ) ) ; gulp . watch ( 'src/assets/img/**/*' ) . on ( 'all' , gulp . series ( images , browser . reload ) ) ; }
Watch for file changes
Watch for file changes