cc

combine-css

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

Showing:

Popularity

Downloads/wk

64

GitHub Stars

10

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

18.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

combine-css v0.0.2 Build Status

Information

Packagecombine-css
Description Combines CSS files into as few files as possible, taking size and selector limits into account
Node Version >= 0.8

Example usage with Gulp

var gulp = require('gulp');
var combineCSS = require('combine-css');

gulp.task('combine', function() {
    gulp.src('./css/*.css')
        .pipe(combineCSS({
            lengthLimit: 256,//2KB
            prefix: '_m-',
            selectorLimit: 4080
        }))
        .pipe(gulp.dest('./combinedCSS'));
});

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

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial