小编Ant*_*ton的帖子

Ruby on Rails 4中没有摘要的字体资源

我的字体资产在生产中没有摘要的情况下出现了问题.我一耙资产:预编译得到:

 5futurebit-webfont-c133dbefd9e1ca208741ed53c7396062.eot
Run Code Online (Sandbox Code Playgroud)

我试图将它与scss中的font-face链接到asset-url,asset-path,font-url和font-path,但所有这些都最终输出路径:

 /assets/5futurebit-webfont.eot
Run Code Online (Sandbox Code Playgroud)

现在我正在将/ app/assets/fonts中的资产直接复制到/ public/assets /但是感觉不是这样做的.

font-face asset-pipeline ruby-on-rails-4

7
推荐指数
1
解决办法
2182
查看次数