vant-weapp/scripts/utils/build-css.js
Yao ce5559a57e
[improvement] 部分组件边框实现修改 (#87)
* 使用超细边框

* 部分组件切换为 hairline

* 文档 边框替换
2017-12-23 14:25:41 +08:00

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']);