2.0.0 • Published 3 years ago

gulp-concat-multiple v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Installation

npm install --save-dev gulp-concat-multiple

Information

Shamelessly copied from gulp-concat and edited in order to output multiple files of the same size due to my project's requirements.

Usage

var concat = require('gulp-concat-multiple');

gulp.task('scripts', function() {
  return gulp.src('./lib/*.js')
    .pipe(concat('all.js', {"files": 4}))
    .pipe(gulp.dest('./dist/'));
});

Outputs 4 files: all-0.js, all-1.js, all-2.js, all-3.js of more or less the same size. You can also specify a "suffix" as well as "files" in order to control the character between the file name and the file number. For example, the default "suffix" is "-".