CartoAssets/Gulpfile.js

22 lines
482 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(){
2016-01-18 23:31:43 +08:00
gulp.src(['./icon-font/svgs/*.svg'])
2016-01-18 05:20:08 +08:00
.pipe(iconfontCss({
fontName: 'cartoIcon',
2016-01-18 23:31:43 +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',
2016-01-18 23:31:43 +08:00
appendCodepoints: true
2016-01-18 05:20:08 +08:00
}))
.pipe(gulp.dest('src/fonts/'));
});