mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 13:48:03 +08:00
79016032ea
* scaffolding chalk * update button
26 lines
589 B
JavaScript
26 lines
589 B
JavaScript
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var sass = require('gulp-sass');
|
|
var autoprefixer = require('gulp-autoprefixer');
|
|
var cssmin = require('gulp-cssmin');
|
|
|
|
gulp.task('compile', function() {
|
|
return gulp.src('./src/*.scss')
|
|
.pipe(sass.sync())
|
|
.pipe(autoprefixer({
|
|
browsers: ['ie > 9', 'last 2 versions'],
|
|
cascade: false
|
|
}))
|
|
.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']);
|