copyleftconf-website/gulp/tasks/css.js
2016-02-27 17:23:35 -06:00

19 lines
409 B
JavaScript

/**
* Dependencies
*/
const gulp = require('gulp');
const less = require('gulp-less');
const prefix = require('gulp-autoprefixer');
/**
* Module body
*/
module.exports = (entry, config) => {
config = config || {};
config.less = config.less || {};
config.autoprefixer = config.autoprefixer || {};
return gulp.src(entry)
.pipe(less(config.less))
.pipe(prefix(config.autoprefixer));
};