naive-ui/build/gulpfile.js

25 lines
566 B
JavaScript
Raw Normal View History

2019-05-29 17:49:01 +08:00
'use strict'
const { series, src, dest } = require('gulp')
const sass = require('gulp-sass')
const autoprefixer = require('gulp-autoprefixer')
const cssmin = require('gulp-cssmin')
2019-06-04 11:30:56 +08:00
function compile () {
2019-05-29 17:49:01 +08:00
return src('../styles/*.scss')
.pipe(sass.sync())
.pipe(autoprefixer({
browsers: ['ie > 9', 'last 2 versions'],
cascade: false
}))
.pipe(dest('../dist/lib/'))
}
2019-06-04 11:30:56 +08:00
function copyfont () {
2019-05-29 17:49:01 +08:00
return src('../styles/resources/**')
.pipe(cssmin())
2019-06-04 11:30:56 +08:00
.pipe(dest('../dist/lib/resources/'))
2019-05-29 17:49:01 +08:00
}
2019-06-04 11:30:56 +08:00
exports.build = series(compile, copyfont)