--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
30
node_modules/gulp-dedupe/README.md
generated
vendored
Normal file
30
node_modules/gulp-dedupe/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# gulp-dedupe [](https://travis-ci.org/hoho/gulp-dedupe)
|
||||
|
||||
Check for duplicates in the stream and filter them or throw an error.
|
||||
|
||||
|
||||
Install:
|
||||
|
||||
```sh
|
||||
npm install gulp-dedupe --save-dev
|
||||
```
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
```js
|
||||
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:
|
||||
|
||||
+ `error` to emit an error in case of duplicate (`false` by default).
|
||||
+ `same` to emit an error in case duplicates have different contents (`true` by
|
||||
default).
|
||||
+ `diff` to supply duplicates with different contents error (`same: true`)
|
||||
with actual diff (`false` by default).
|
||||
Loading…
Reference in a new issue