Skip to content

Concatenates files into as few files as possible without exceeding a given length limit

Notifications You must be signed in to change notification settings

adam-lynch/gulp-concat-limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-concat-limit v0.0.3 Build Status

Information

Packagegulp-concat-limit
Description Concatenates files into as few files as possible without exceeding a given length limit
Node Version >= 0.8

Install

npm install gulp-concat-limit

Example usage with Gulp

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

gulp.task('concat', function() {
    gulp.src('./css/*.css')
        .pipe(concat('style-.css', 256))//2KB
        .pipe(gulp.dest('./combinedCSS'));
});

gulp.task('default', ['concat']);

// Rerun the task when a file changes
gulp.task('watch', function () {
  gulp.watch('./css/*.css', ['concat']);
});

Parameters

fileName (required) string sizeLimit (optional) number, defaults to 25600 (200KB) options (optional); options.newLine (optional) boolean, defaults to false

About

Concatenates files into as few files as possible without exceeding a given length limit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published