Skip to content

Commit c7c2abb

Browse files
committed
Add needsUpdate check to lib tasks
1 parent 09ff532 commit c7c2abb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Gulpfile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ for (const i in libraryTargets) {
279279
return path.join(libraryDirectory, s);
280280
}));
281281
gulp.task(target, false, [], function() {
282+
if (!needsUpdate(sources, target)) {
283+
return gulp.src(target);
284+
}
282285
return gulp.src(sources).pipe(concat(target, {newLine: ""})).pipe(gulp.dest("."));
283286
});
284287
}

0 commit comments

Comments
 (0)