Skip to content

Instantly share code, notes, and snippets.

@pascalduez
Created December 9, 2015 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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