gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 127 forks source link

Content duplicated when globbing #116

Closed dmitrybelyakov closed 8 years ago

dmitrybelyakov commented 8 years ago

Hey!

I'm getting a weird issue when using globbing pattert to traverse a directory:

  gulp.src('frontend/js/{,**/}*.js')
    .pipe(concat('app.js'))
    .pipe(gulp.dest(public/js/));

Specifically I'm getting concatenated content duplicated, and my code appears twice in the destination file. This works however:

  gulp.src('frontend/js/**/*.js')
    .pipe(concat('app.js'))
    .pipe(gulp.dest(public/js/));

But in that case I need to change the pattern each time I decide to nest directories deeper.

I'm on gulp-concat v. 2.6.0

yocontra commented 8 years ago

Not an issue with concat, this is an issue with the globber. This should be opened here: https://github.com/gulpjs/vinyl-fs

dmitrybelyakov commented 8 years ago

Ok, sure.