From 09d53714a0af204110c5b96c13fb12742c7c5382 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 15 Nov 2018 17:53:48 +0800 Subject: [PATCH] [build] fix build iconfont (#2091) --- build/build-iconfont.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build-iconfont.js b/build/build-iconfont.js index 5b242d709..e14161b6c 100644 --- a/build/build-iconfont.js +++ b/build/build-iconfont.js @@ -48,7 +48,7 @@ gulp.task('ttf', () => { iconfontCss({ fontName: config.name, path: template, - targetPath: '../icon/index.css', + targetPath: '../icon/index.less', normalize: true, firstGlyph: 0xf000, cssClass: ttf // this is a trick to pass ttf to template @@ -66,7 +66,7 @@ gulp.task('ttf', () => { gulp.task('default', ['ttf'], () => { // generate icon-local.css fs.writeFileSync( - path.join(iconDir, 'local.css'), + path.join(iconDir, 'local.less'), local(config.name, ttf) );