vant/build/build-style.js
2018-12-14 14:24:23 +08:00

17 lines
415 B
JavaScript

const gulp = require('gulp');
const less = require('gulp-less');
const csso = require('gulp-csso');
const postcss = require('gulp-postcss');
// compile component css
gulp.task('compile', () => (
gulp
.src(['../es/**/*.less', '../lib/**/*.less'])
.pipe(less())
.pipe(postcss())
.pipe(csso())
.pipe(gulp.dest(file => file.base.replace('.less', '.css')))
));
gulp.task('default', ['compile']);