作者:心動寶貝r | 来源:互联网 | 2023-05-18 17:08
WhenItrytouserakeassets:precompileRAILS_ENVproductionitthrowsthiserror:当我尝试使用rake资产:pre
When I try to use rake assets:precompile RAILS_ENV=production
it throws this error:
当我尝试使用rake资产:precompile RAILS_ENV=生产时,它会抛出这个错误:
Sass::SyntaxError: Invalid CSS after "...awesome-webfont": expected ")", was ".woff);"
This is my style.css
file:
这是我的风格。css文件:
@font-face {
font-family:FontAwesome;
src:font-image-url(fontawesome-webfont.woff);
}
If I comment the line src:font-image-url(fontawesome-webfont.woff);
this error appears
如果我注释行src:font-image-url(fontawesome-webfont.woff);这个错误出现
Sass::SyntaxError: Invalid CSS after "...:image-url(ban2": expected ")", was ".jpg);"
I am using gem "font-awesome-rails"
with rails 4.2.4 .
我正在使用gem“font-awesome-rails”和rails 4.2.4。
1 个解决方案