gulp-stylecow
3.2.2 • Public • Published 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('./'));
});
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
3.2.2 | 0 | latest |
Version History
Package Sidebar
Install
Weekly Downloads