From 069ad3a8253038d2eb855bae4d0862747a61b12d Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Wed, 18 May 2016 06:58:15 -0400 Subject: [PATCH] :bug: Fix JS watch bug --- tasks/js.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/js.js b/tasks/js.js index 4d9d472..86245b2 100644 --- a/tasks/js.js +++ b/tasks/js.js @@ -62,6 +62,10 @@ module.exports = (gulp, options) => { * Gulp task to watch all JavaScript files and lint on change **/ gulp.task('js:watch', () => { - return gulp.watch(lintPaths, ['js']); + const watchPaths = Object.keys(lintPaths).map(pth => { + return lintPaths[pth]; + }); + + return gulp.watch(watchPaths, ['js']); }); };