mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
17 lines
415 B
JavaScript
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']);
|