How to include ui-grid font files into the project

前端 未结 8 670
独厮守ぢ
独厮守ぢ 2021-01-07 19:55

I have been stuck with anjularjs ui-grid, it\'s showing some Chinese symbols in place of icons. After digging about it I get to know I have to use some font-files provided b

8条回答
  •  别那么骄傲
    2021-01-07 20:34

    I'm using Gulp and I added a fonts:dev task to be added as a dep to my serve task:

     gulp.task('fonts:dev', function () {
        return gulp.src($.mainBowerFiles())
          .pipe($.filter('**/*.{eot,svg,ttf,woff,woff2}'))
          .pipe($.flatten())
          .pipe(gulp.dest(options.tmp + '/serve/fonts/'));
      });
    

    This solved it for me. More context here.

提交回复
热议问题