Skip to content

Commit

Permalink
fix(icon): 修复icon打包字体路径异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Jul 30, 2018
1 parent 4311fad commit 128b72c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/Icon/style/var.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '../../styles/var.less';
@import '../../styles/common/reset.less';
@import '../../styles/common/iconfont/ionicons.less';
@import '../../styles/common/iconfont/ionicons.less';

@ionicons-font-path: "../../styles/common/iconfont/fonts";
4 changes: 2 additions & 2 deletions scripts/gulpLess.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ gulp.task('less', function () {

gulp.task('font', function () {
return gulp.src(path.resolve('../components/styles/common/iconfont/fonts/*'))
.pipe(gulp.dest(path.resolve('../lib/Icon/fonts')))
// .pipe(gulp.dest(path.resolve('../lib/Icon/fonts')))
.pipe(gulp.dest(path.resolve('../lib/fonts')))
.pipe(gulp.dest(path.resolve('../es6/Icon/fonts')))
.pipe(gulp.dest(path.resolve('../es6/fonts')));
// .pipe(gulp.dest(path.resolve('../es6/fonts')));
});

// 单个组件打包less
Expand Down

0 comments on commit 128b72c

Please sign in to comment.