make gulp able to watch libs

This commit is contained in:
Niels Lyngsø
2019-09-13 13:43:48 +02:00
parent 31d09c5e04
commit f59cf544a5

View File

@@ -53,6 +53,13 @@ gulp.task('watch', function () {
watch(config.sources.globs.js, { interval: watchInterval })
.pipe(gulp.dest(config.root + config.targets.js))
);
//watch all lib files that will not be merged - copy single file changes
stream.add(
watch(config.sources.globs.lib, { interval: watchInterval })
.pipe(gulp.dest(config.root + config.targets.lib))
);
return stream;
});