Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Added path for php and scss file changes/removals to console output. #1210

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,12 @@ function reload(done) {
// Watch for changes to static assets, pages, Sass, and JavaScript
function watch() {
gulp.watch(PATHS.assets, copy);
gulp.watch('src/assets/scss/**/*.scss', sass);
gulp.watch('**/*.php', reload);
gulp.watch('src/assets/scss/**/*.scss', sass)
.on('change', path => gutil.log('File ' + gutil.colors.magenta(path) + ' changed.'))
.on('unlink', path => gutil.log('File ' + gutil.colors.magenta(path) + ' was removed.'));
gulp.watch('**/*.php', reload)
.on('change', path => gutil.log('File ' + gutil.colors.magenta(path) + ' changed.'))
.on('unlink', path => gutil.log('File ' + gutil.colors.magenta(path) + ' was removed.'));
gulp.watch('src/assets/images/**/*', gulp.series(images, browser.reload));
}

Expand Down