Open dima4p opened 5 months ago
I'm using this gem personally: https://github.com/FortAwesome/font-awesome-sass
And I also had to set the font path variable when importing it:
@use "font-awesome" with (
$fa-font-path: "font-awesome"
);
And I also had to set the font path variable when importing it:
@use "font-awesome" with ( $fa-font-path: "font-awesome" );
Thank you very much. But I can not understand where the code above should be placed? I got the message:
Error: This variable was not declared with !default in the @used module.
╷
3 │ $fa-font-path: "font-awesome"
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
There is no support for .erb
with dartsass-rails
. If your sass has any .erb
dependency, you need to use dartsass-sprockets
or sassc-rails + sassc-embedded
, instead of dartsass-rails
.
There is no support for
.erb
withdartsass-rails
. If your sass has any.erb
dependency, you need to usedartsass-sprockets
orsassc-rails + sassc-embedded
, instead ofdartsass-rails
.
With my patch dima4p/font-awesome-sass I use font-awesome
with dartsass-rails
I have met a problem to use the gem
font-awesome-rails
.The command
rails dartsass:build
produces an error.I suppose the problem is that the file to be included with
@import "font-awesome"
fromfont-awesome-rails-4.7.0.8/app/assets/stylesheets/font-awesome.css.erb')
is of the format.erb
and therefore can not be parsed:I do not know, of which gem is the bug. The candidates are:
The whole project that demonstrates the bug is here.