gulp-concat

Streaming concat middleware for gulp.

Installation

npm install --save-dev gulp-concat

Configuration

const concat = require('gulp-concat');
 
gulp.task('scripts', function() {
  return gulp.src('./lib/*.js')
    .pipe(concat('all.js'))
    .pipe(gulp.dest('./dist/'));
});