build/build-iconfont.js
function font() {
  return src([`${svgDir}/*.svg`])
    .pipe(
      iconfontCss({
        fontName: config.name,
        path: template,
        targetPath: '../src/index.less',
        normalize: true,
        firstGlyph: 0xf000,
        cssClass: fontName // this is a trick to pass fontName to template
      })
    )
    .pipe(
      iconfont({
        fontName,
        formats
      })
    )
    .pipe(dest(srcDir));
}
function font() {
  return src([`${svgDir}/*.svg`])
    .pipe(
      iconfontCss({
        fontName: config.name,
        path: template,
        targetPath: '../src/index.less',
        normalize: true,
        firstGlyph: 0xf000,
        cssClass: fontName // this is a trick to pass fontName to template
      })
    )
    .pipe(
      iconfont({
        fontName,
        formats
      })
    )
    .pipe(dest(srcDir));
}
function font ( ) { return src ( [ ` ${ svgDir } ` ] ) . pipe ( iconfontCss ( { fontName : config . name , path : template , targetPath : '../src/index.less' , normalize : true , firstGlyph : 0xf000 , cssClass : fontName // this is a trick to pass fontName to template } ) ) . pipe ( iconfont ( { fontName , formats } ) ) . pipe ( dest ( srcDir ) ) ; }
generate font from svg && build index.less
generate font from svg && build index . less