carto.js/gulpfile.js

22 lines
529 B
JavaScript
Raw Normal View History

2020-06-13 18:34:34 +08:00
var gulp = require('gulp');
var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css');
gulp.task('default', function () {
gulp.src(['./themes/svg/*.svg'])
.pipe(iconfontCss({
fontName: 'CDBIcon',
path: './themes/svg/_icons.scss',
targetPath: '../scss/icons/icons.scss',
fontPath: '../../fonts/'
}))
.pipe(iconfont({
fontName: 'CDBIcon', // required
appendCodepoints: true // recommended option
}))
.pipe(gulp.dest('themes/fonts/'));
});