mirror of https://github.com/ElemeFE/element
parent
9c7fcf30f2
commit
535b6149d8
|
@ -97,9 +97,9 @@
|
|||
"eslint-plugin-json": "^1.2.0",
|
||||
"file-loader": "^1.1.11",
|
||||
"file-save": "^0.2.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-autoprefixer": "^4.0.0",
|
||||
"gulp-cssmin": "^0.1.7",
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-autoprefixer": "^6.0.0",
|
||||
"gulp-cssmin": "^0.2.0",
|
||||
"gulp-sass": "^4.0.2",
|
||||
"highlight.js": "^9.3.0",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
'use strict';
|
||||
|
||||
var gulp = require('gulp');
|
||||
var sass = require('gulp-sass');
|
||||
var autoprefixer = require('gulp-autoprefixer');
|
||||
var cssmin = require('gulp-cssmin');
|
||||
const { series, src, dest } = require('gulp');
|
||||
const sass = require('gulp-sass');
|
||||
const autoprefixer = require('gulp-autoprefixer');
|
||||
const cssmin = require('gulp-cssmin');
|
||||
|
||||
gulp.task('compile', function() {
|
||||
return gulp.src('./src/*.scss')
|
||||
function compile() {
|
||||
return src('./src/*.scss')
|
||||
.pipe(sass.sync())
|
||||
.pipe(autoprefixer({
|
||||
browsers: ['ie > 9', 'last 2 versions'],
|
||||
cascade: false
|
||||
}))
|
||||
.pipe(cssmin())
|
||||
.pipe(gulp.dest('./lib'));
|
||||
});
|
||||
.pipe(dest('./lib'));
|
||||
}
|
||||
|
||||
gulp.task('copyfont', function() {
|
||||
return gulp.src('./src/fonts/**')
|
||||
function copyfont() {
|
||||
return src('./src/fonts/**')
|
||||
.pipe(cssmin())
|
||||
.pipe(gulp.dest('./lib/fonts'));
|
||||
});
|
||||
.pipe(dest('./lib/fonts'));
|
||||
}
|
||||
|
||||
gulp.task('build', ['compile', 'copyfont']);
|
||||
exports.build = series(compile, copyfont);
|
||||
|
|
Loading…
Reference in New Issue