Created
December 9, 2015 22:16
-
-
Save pascalduez/d1122a3560eee315f655 to your computer and use it in GitHub Desktop.
PostCSS Gulp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var postcss = require('gulp-postcss'); | |
gulp.task('styles', function () { | |
var opts = { | |
basePath: 'input/', | |
maps: [ 'whatever.yml' ], | |
}; | |
var processors = [ | |
require('postcss-map')(opts), | |
require('autoprefixer-core')(), | |
]; | |
return gulp.src('input/**/*.css') | |
.pipe(postcss(processors)) | |
.pipe(gulp.dest('output')); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment