mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
dec5d665a3
* feat: change to import scss Change the import css to import scss to facilitate style modification * fix: fixed: storybook support scss file fixed: storybook support scss file * chore: remove redundant code in webpack.config.js Remove redundant code in webpack.config.js
26 lines
610 B
JavaScript
26 lines
610 B
JavaScript
'use strict'
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { series, src, dest } = require('gulp')
|
|
const sass = require('gulp-sass')
|
|
const autoprefixer = require('gulp-autoprefixer')
|
|
const cssmin = require('gulp-cssmin')
|
|
|
|
function compile() {
|
|
return src('./src/*.scss')
|
|
.pipe(sass.sync())
|
|
.pipe(autoprefixer({
|
|
browsers: ['ie > 9', 'last 2 versions'],
|
|
cascade: false,
|
|
}))
|
|
.pipe(cssmin())
|
|
.pipe(dest('./lib'))
|
|
}
|
|
|
|
function copyfont() {
|
|
return src('./src/fonts/**')
|
|
.pipe(cssmin())
|
|
.pipe(dest('./lib/fonts'))
|
|
}
|
|
|
|
exports.build = series(compile, copyfont)
|