mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
20 lines
506 B
JavaScript
20 lines
506 B
JavaScript
const gulp = require('gulp');
|
|
const postcss = require('gulp-postcss');
|
|
const cssmin = require('gulp-clean-css');
|
|
const rename = require('gulp-rename');
|
|
const gutil = require('gulp-util');
|
|
|
|
const options = gutil.env;
|
|
|
|
gulp.task('compile', () => {
|
|
return gulp.src(['../../packages/**/*.pcss', '!../../packages/**/_*.pcss'])
|
|
.pipe(postcss())
|
|
.pipe(cssmin())
|
|
.pipe(rename((path) => {
|
|
path.extname = '.wxss';
|
|
}))
|
|
.pipe(gulp.dest(options.dist));
|
|
});
|
|
|
|
gulp.task('build', ['compile']);
|