CartoAssets/Gulpfile.js
Javier Arce 94cbf413ba test
2016-01-17 23:45:30 +01:00

22 lines
483 B
JavaScript

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',
path: './icon_font/template.jst.ejs',
targetPath: '../scss/icon-font.css.scss',
fontPath: '../../fonts/'
}))
.pipe(iconfont({
fontName: 'cartoIcon',
appendCodepoints: true
}))
.pipe(gulp.dest('src/fonts/'));
});