0.0.2 • Published 11 years ago
gulp-dedupe v0.0.2
gulp-dedupe 
Check for duplicates in the stream and filter them or throw an error.
Install:
npm install gulp-dedupe --save-devExample:
var dedupe = require('gulp-dedupe');
...
.pipe(dedupe()) // Remove duplicates from previous tasks (if any).
.pipe(concat('bundle.css')) // For example, we need to concat the result without duplicates.
.pipe(gulp.dest('./build'));dedupe(options) optionally accepts options object. There are two options:
errorto emit an error in case of duplicate (falseby default).sameto emit an error in case duplicates have different contents (trueby default).diffto supply duplicates with different contents error (same: true) with actual diff (falseby default).