mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 05:38:24 +08:00
22 lines
519 B
JavaScript
22 lines
519 B
JavaScript
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var postcss = require('gulp-postcss');
|
|
var cssmin = require('gulp-cssmin');
|
|
var salad = require('postcss-salad')(require('./salad.config.json'));
|
|
|
|
gulp.task('compile', function() {
|
|
return gulp.src('./src/*.css')
|
|
.pipe(postcss([salad]))
|
|
.pipe(cssmin())
|
|
.pipe(gulp.dest('./lib'));
|
|
});
|
|
|
|
gulp.task('copyfont', function() {
|
|
return gulp.src('./src/fonts/**')
|
|
.pipe(cssmin())
|
|
.pipe(gulp.dest('./lib/fonts'));
|
|
});
|
|
|
|
gulp.task('build', ['compile', 'copyfont']);
|