dd8f0ba9c5
Closes #3
19 lines
409 B
JavaScript
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));
|
|
};
|