Run js-public and js-dashboard when any js files change in the traditional-bootstrap gulpfile watch task

This commit is contained in:
Kevin MacMartin 2018-06-26 19:20:14 -04:00
parent 45e39e075e
commit 5e9c5b39c9

View file

@ -203,8 +203,7 @@ gulp.task("watch", () => {
});
gulp.watch([ "app/**/*.php", "routes/**/*.php", "resources/views/**/*.blade.php" ], gulp.series(browserSyncReload));
gulp.watch(jsPublic, gulp.series("js-public", browserSyncReload));
gulp.watch("resources/assets/js/**/dashboard.js", gulp.series("js-dashboard", browserSyncReload));
gulp.watch("resources/assets/js/**/*.js", gulp.series(gulp.parallel("js-public", "js-dashboard"), browserSyncReload));
gulp.watch("resources/assets/sass/**/*.scss", gulp.parallel("sass-public", "sass-dashboard", "sass-error"));
});