0.0.3 • Published 8 years ago
gulp-deleted2 v0.0.3
gulp-deleted
The gulp plugin gulp-deleted
allows you to remove files from the destination folder which do not exist in the source stream (with exclusions);
Best used in conjunction with gulp-collate and gulp-changed
var srcPaths = [ "src/**/assets/**/*" ]
var destPath = "dest/"
gulp.src( srcPaths )
.pipe( collate("assets") )
.pipe( deleted( destPath , [
"**/*",
"!index.html"
]))
.pipe( changed(destPath) )
.pipe( gulp.dest( destPath ) );
0.0.3
8 years ago