Execute stylecow plugins with gulp
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore updated to stylecow v6 May 16, 2015
LICENSE-MIT updated license year Nov 7, 2015
README.md updated dependencies and docs Jul 11, 2016
index.js
package.json

README.md

gulp-stylecow

Execute stylecow plugins with gulp

Usage

Common way:

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

gulp.task('stylecow', function() {
    gulp.src('./src/*.css')
        .pipe(stylecow({
            code: 'minify',
            plugins: [
                'color',
                'variables',
                'import',
                'flex',
                'prefixes',
                'fixes'
            ]
        }))
        .pipe(gulp.dest('./public/'));
});

Using stylecow.json file

var stylecow = require('gulp-stylecow'),
    rename   = require('gulp-rename');

gulp.task('stylecow', function() {
    var config = require('./stylecow.json');

    stylecow.src(config.files).forEach(function (file) {
        gulp.src(file.input)
            .pipe(stylecow(config))
            .pipe(rename(file.output))
            .pipe(gulp.dest('./'));
    });
});