Gulp.js File for Drupal 8 Zurb Foundation and UI Patterns
1 min readJan 22, 2019
Passing an array allows your gulp.js file to do multiple tasks. Here is how I updated my gulp.js file to watch multiple directories in different locations.
// Watch for changes for scss files and rebuild.
gulp.task(‘watch:css’, [‘sass’, ‘drush:cc’, ‘lint:sass’], function () {
return gulp.watch([options.theme.scss + ‘**/*.scss’, options.rootPath.theme + ‘templates/**/*.scss’], options.gulpWatchOptions, [‘sass’, ‘drush:cc’, ‘lint:sass’]);
});