Copy angular-ui-grid fonts into .tmp/fonts

后端 未结 1 1411
一生所求
一生所求 2021-01-19 14:11

I was experiencing a known issue with Angular UI Grid where some of my fonts would look Korean in production.

I applied a certain fix by adding the following CSS:

相关标签:
1条回答
  • I came up while a solution that works, although it's not very DRY. I hope someone else suggests a better solution.

      // This is the original fonts task
      gulp.task('fonts', function () {
        return gulp.src($.mainBowerFiles())
          .pipe($.filter('**/*.{eot,svg,ttf,woff,woff2}'))
          .pipe($.flatten())
          .pipe(gulp.dest(options.dist + '/fonts/'));
      });
    
      // This is my new task, only slightly different
      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/'));
      });
    

    I added the fonts:dev task as shown above, and I added it as a dep to my serve task.

    0 讨论(0)
提交回复
热议问题