naive-ui/build/gulpfile.js
2019-06-04 11:30:56 +08:00

25 lines
566 B
JavaScript

'use strict'
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('../styles/*.scss')
.pipe(sass.sync())
.pipe(autoprefixer({
browsers: ['ie > 9', 'last 2 versions'],
cascade: false
}))
.pipe(dest('../dist/lib/'))
}
function copyfont () {
return src('../styles/resources/**')
.pipe(cssmin())
.pipe(dest('../dist/lib/resources/'))
}
exports.build = series(compile, copyfont)