Add needsUpdate check to lib tasks

This commit is contained in:
Wesley Wigham
2016-06-14 17:35:32 -07:00
parent 09ff5325ee
commit c7c2abbb8b

View File

@@ -279,6 +279,9 @@ for (const i in libraryTargets) {
return path.join(libraryDirectory, s);
}));
gulp.task(target, false, [], function() {
if (!needsUpdate(sources, target)) {
return gulp.src(target);
}
return gulp.src(sources).pipe(concat(target, {newLine: ""})).pipe(gulp.dest("."));
});
}