carto-4.2.2-1.js/gulpfile.js

22 lines
529 B
JavaScript
Raw Normal View History

2024-05-23 15:34:45 +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/'));
});