Use font-spider tarantula to compress the font to report an error < web font not found >

clipboard.png

@font-face {
  font-family: fangzheng;
  src: url("../font/fangzheng.ttf");
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: fangzheng;
  font-size: 1em;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}

when executing, report
< web font not found >
what is the situation? I have reduced the npm to 4.6. everything else can be compressed normally and the font is well displayed

.
Mar.31,2021

font copied to font? if it is webpack, is font font not processed in module/loader

browser network take a look at the requested font resource path


I found the reason for my web font not found. I wrote @ media in css but can't write @ keyfames, in @ media. just move it out of @ media

.
Menu