Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.