-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix File to import not found or unreadable: font-awesome-sprockets #163
base: master
Are you sure you want to change the base?
Fix File to import not found or unreadable: font-awesome-sprockets #163
Conversation
Any chance to get this merged @steveklabnik? I have the same issue and will need to fork atm. |
I haven't worked on Resque in years, sorry! |
@vgunawan I am running into the same issue. Sounds like I should just fork |
@EdCordata thank you for fixing this issue! I just ran into it and I found this PR here. |
@@ -2,7 +2,6 @@ | |||
=require twitter-bootstrap-static/bootstrap | |||
*/ | |||
|
|||
@import "font-awesome-sprockets"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this doesn't break for everyone else wouldn't you want to do something like this?
$rails_version: '#{asset-path("config/application.rb")}';
@if ($rails_version < 6) {
// Import sprockets only if the Rails version is less than 6
@import "font-awesome-sprockets";
}
# config/application.rb or an initializer
# Set a custom environment variable to indicate the Rails version
Rails.application.config.rails_version = Rails.gem_version
I'm not entirely sure this works as written as it was generated by chatGPT but some author who knows scss syntax better than me could clean it up.
Fixes #162