From a8ec9c10a451086eae286213ff7749250eaa33e2 Mon Sep 17 00:00:00 2001 From: koenemann Date: Fri, 2 Dec 2016 09:35:09 +0100 Subject: [PATCH] Adding watcher task for scripts - https://github.com/holger1411/understrap/issues/134 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding watcher task to watch /src/js/ too and run „gulp script“ task onChange --- gulpfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gulpfile.js b/gulpfile.js index 3dee181..18005d8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -94,6 +94,7 @@ gulp.task('sass', function () { gulp.task('watch', function () { gulp.watch('./sass/**/*.scss', ['sass']); gulp.watch('./css/theme.css', ['cssnano']); + gulp.watch([basePaths.dev + 'js/**/*.js'], ['scripts']) }); // Run: