Skip to content

Instantly share code, notes, and snippets.

@pascalduez
Created December 9, 2015 22:16
Show Gist options
  • Save pascalduez/d1122a3560eee315f655 to your computer and use it in GitHub Desktop.
Save pascalduez/d1122a3560eee315f655 to your computer and use it in GitHub Desktop.
PostCSS Gulp
'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