mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
31 lines
694 B
JavaScript
31 lines
694 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/'))
|
|
}
|
|
|
|
function copyicon () {
|
|
return src('../packages/icons/*.vue')
|
|
.pipe(cssmin())
|
|
.pipe(dest('../lib/icons'))
|
|
}
|
|
|
|
exports.build = series(compile, copyfont, copyicon)
|