gulp-concat-multiple

2.0.0 • Public • Published

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.

Package gulp-concat-multiple
Description Concatenates files into N target files
Node Version >= 0.10

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 "-".

Readme

Keywords

Package Sidebar

Install

npm i gulp-concat-multiple

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

6.61 kB

Total Files

4

Last publish

Collaborators

  • devinsills