Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adam-lynch/gulp-concat-limit
Concatenates files into as few files as possible without exceeding a given length limit
https://github.com/adam-lynch/gulp-concat-limit
Last synced: 3 months ago
JSON representation
Concatenates files into as few files as possible without exceeding a given length limit
- Host: GitHub
- URL: https://github.com/adam-lynch/gulp-concat-limit
- Owner: adam-lynch
- Created: 2014-02-04T19:33:29.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T20:16:06.000Z (over 7 years ago)
- Last Synced: 2024-10-12T23:26:46.564Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 201 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gulp-concat-limit v0.0.3 [![Build Status](https://travis-ci.org/adam-lynch/gulp-concat-limit.png)](https://travis-ci.org/adam-lynch/gulp-concat-limit)
## Information
Packagegulp-concat-limitDescription
Concatenates files into as few files as possible without exceeding a given length limitNode Version
>= 0.8## Install
```js
npm install gulp-concat-limit
```## Example usage with [Gulp](http://github.com/gulpjs/gulp)
```js
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