如何使从CSS构造CSS之后的样式文件中的属性“ font-face”具有文件的URL,而不是base65?

时间:2018-10-24 14:28:57

标签: css font-face

在文件styles.scss中,我写:

@font-face {
  font-family: 'Proxima Nova';
  font-style: normal;
  font-weight: normal;
    src: local('Proxima Nova') url("../fonts/ProximaNova-Regular.ttf");
}

但是在输出中我得到:

@font-face {
  font-family: 'Proxima Nova';
  font-style: normal;
  font-weight: normal;
  src: local("Proxima Nova") url(data:font/ttf;base64, and here I have a big string
}

在github.com上,这个base65看起来很奇怪。 我想知道如何在src属性中获取输出,只是url,而不是base64。

0 个答案:

没有答案