chore: upgrade gulp (#14745)

* chore: upgrade gulp

* update
pull/14748/head
hetech 2019-03-18 16:15:18 +08:00 committed by GitHub
parent 9c7fcf30f2
commit 535b6149d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 565 additions and 544 deletions

View File

@ -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",

View File

@ -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);

1077
yarn.lock

File diff suppressed because it is too large Load Diff