Skip to content

Block a gulp stream when it contains duplicate files

License

Notifications You must be signed in to change notification settings

redfin/gulp-nodupe

Repository files navigation

Overview

Breaks a gulp stream if a duplicate files (duplicate meaning identical contents) are piped through it. Similar to gulp-dedupe, but intended to be used when the duplicate has to be removed by a human, rather than automatically.

Usage

It couldn't be simpler -- just add it to your pipe.

var gulp = require('gulp');
var nodupe = require('nodupe');

gulp.task('breakOnDuplicates', function() {
  gulp.src('path/to/*.glob')
    .pipe(nodupe())
    .pipe(gulp.dest('path/to/dist'));
});

Takes no options.

About

Block a gulp stream when it contains duplicate files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published