gulp-stylecow
v3.2.2
Published
Transform css files using stylecow
Downloads
15
Readme
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('./'));
});
});