gulp-community / gulp-concat

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

how to contat files with path name alone but not in all? #123

Closed ivanberry closed 8 years ago

ivanberry commented 8 years ago

What i should do to achieve like this?

Before contat

1

After contat

2

Thanks!

yocontra commented 8 years ago

Something like this:

gulp.src('contat/**/*.css')
  .pipe(concat('all.css'))
  .pipe(rename((p) => {
    p.basename = `${p.dirname}.${p.basename}`
    return p
  }))
  .pipe(gulp.dest('some-folder'))

Support questions go on StackOverflow.