gulp-community/gulp-concat

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

ivanberry opened this issue · 1 comments

What i should do to achieve like this?

Before contat

1

After contat

2

Thanks!

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.