You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's also possible to pass in all your asset files at once:
48
+
49
+
```js
50
+
[...]
51
+
52
+
gulp.task('clean', function() {
53
+
gulp.src( ['dist/**/*.*'], {read:false})
54
+
.pipe( revOutdated(1) ) // leave 1 latest asset file for every file name prefix.
55
+
.pipe( cleaner() );
56
+
57
+
return;
58
+
});
59
+
```
60
+
47
61
gulp.src option read false prevents gulp to read the contents of the file and makes this task a lot faster. If you need the file and it's contents after cleaning in the same stream, do not set the read option to false.
48
62
49
63
### Works with gulp-rev-outdated
@@ -54,4 +68,4 @@ gulp.src option read false prevents gulp to read the contents of the file and ma
0 commit comments