JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2683
  • Score
    100M100P100Q120769F
  • License MIT

CSScomb is a coding style formatter for CSS.

Package Exports

  • gulp-csscomb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-csscomb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-csscomb

Format CSS coding style with CSScomb.

If you have any difficulties with the output of this plugin, please use the CSScomb tracker.

Installation

Install via npm:

npm install gulp-csscomb --save-dev

Example 1

var gulp = require('gulp');
var csscomb = require('gulp-csscomb');

gulp.task('styles', function () {
    return gulp.src('src/styles/main.css')
        .pipe(csscomb())
        .pipe(gulp.dest('./build/css'));
});

Example 2

var gulp = require('gulp');
var less = require('gulp-less');
var prefixer = require('gulp-autoprefixer');
var csscomb = require('gulp-csscomb');

gulp.task('styles', function () {
    return gulp.src('src/styles/bootstrap.less')
        .pipe(less({strictMath: true}))
        .pipe(prefixer([
            'Android 2.3',
            'Android >= 4',
            'Chrome >= 20',
            'Firefox >= 24', // Firefox 24 is the latest ESR
            'Explorer >= 8',
            'iOS >= 6',
            'Opera >= 12',
            'Safari >= 6']))
        .pipe(csscomb())
        .pipe(gulp.dest('./build/css'));
});

If there is .csscomb.json file present in the same folder as the source file(s), or in the project root folder, gulp-csscomb will read config settings from it instead of default config.

You can also specify a pre-defined configuration. Ex.: csscomb('zen')

License

The MIT License (MIT) © Konstantin Tarkus (@koistya)