CartoAssets/Gulpfile.js

22 lines
483 B
JavaScript
Raw Normal View History

2016-01-18 05:20:08 +08:00
var gulp = require('gulp');
var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css');
gulp.task('default', function(){
gulp.src(['./icon_font/svgs/*.svg'])
.pipe(iconfontCss({
fontName: 'cartoIcon',
2016-01-18 06:45:30 +08:00
path: './icon_font/template.jst.ejs',
2016-01-18 05:20:08 +08:00
targetPath: '../scss/icon-font.css.scss',
fontPath: '../../fonts/'
}))
.pipe(iconfont({
fontName: 'cartoIcon',
appendCodepoints: true
}))
.pipe(gulp.dest('src/fonts/'));
});