Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4

后端 未结 25 1534
长发绾君心
长发绾君心 2020-12-04 11:46

I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome consol

25条回答
  •  情话喂你
    2020-12-04 12:16

    My issue was that I was declaring two fonts, and scss seems to expect that you declare the name of the font.

    after your @font-face{} you must declare $my-font: "OpenSans3.0 or whatever";

    and this for each font-face.

    :-)

提交回复
热议问题