Socket
Book a DemoInstallSign in
Socket

combine-css

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combine-css

Combines CSS files into as few files as possible, taking size and selector limits into account

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

combine-css v0.0.2 Build Status

Information

Packagecombine-css
DescriptionCombines 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']);
});

Keywords

gulpplugin

FAQs

Package last updated on 05 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.