Skip to content

flftfqwxf/gulp-iconfont-css-and-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-iconfont-css-and-template

##基于gulp-iconfont和gulp-iconfont-css源码修改的组件,用于生成iconfont及字体图标及查看模板。解决生成的字体图标不方便查看的问题

##第一个可用版本:

Install

Install with npm.

npm install --save-dev gulp-iconfont-css-and-template

Examples

   var gulp = require('gulp');
   var iconfont = require('gulp-iconfont');
   var iconfontCssAndTemplate = require('gulp-iconfont-css-and-template');
   gulp.task('iconFontCssAndTemplate', function () {
      return gulp.src(['svg/**/*.svg'])
           .pipe(iconfontCssAndTemplate({
               fontName: 'fontName',
               cssClass: 'gmIcon',
               cssTargetPath: 'iconFont.css'
           }))
           .pipe(iconfont({
               fontName: 'fontName',
               formats: ['ttf', 'eot', 'woff', 'svg']
           }))
           .pipe(gulp.dest('iconfont/'));
   });

About

iconfont组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published