bundle exec rake assets:precompile throws font-awesome related issue

本小妞迷上赌 提交于 2020-01-13 19:09:27

问题


I am getting error while doing bundle exec rake assets:precompile

Here's complete error I am getting on terminal while I hit the above command.

Here's my variables.less code snippet

@fa-font-path:        "assets/font-awesome/fonts";
@fa-css-prefix:       "fa";
@fa-version:          "4.2.0";
@fa-border-color:     #eee;
@fa-inverse:          #fff;
@fa-li-width:         (30em / 14);

Here's my font-awesome.css snippet

@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?  v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}

 .fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }

Not able to figure out the issue on this. Can someone please help me here.

Thanks

来源:https://stackoverflow.com/questions/30885509/bundle-exec-rake-assetsprecompile-throws-font-awesome-related-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!