vant-weapp/build/build-css.js
Yao 451a3b19fc
[new feature] 增加 css 编译,方便组件书写 (#40)
* add src dir && add build

* add build watch && change dir name

* bower ignore package.json
2017-10-29 10:42:28 +08:00

13 lines
298 B
JavaScript

const gulp = require('gulp');
const postcss = require('gulp-postcss');
const cssmin = require('gulp-clean-css');
gulp.task('compile', () => {
return gulp.src('../packages/**/*.wxss')
.pipe(postcss())
.pipe(cssmin())
.pipe(gulp.dest('../dist'));
});
gulp.task('build', ['compile']);