Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EdCordata
Copy link

Fixes #162

@vgunawan
Copy link

Any chance to get this merged @steveklabnik? I have the same issue and will need to fork atm.

@steveklabnik
Copy link
Member

I haven't worked on Resque in years, sorry!

@garybunofsky
Copy link

@vgunawan I am running into the same issue. Sounds like I should just fork

diei added a commit to diei/resque-web that referenced this pull request Nov 2, 2022
@hron84
Copy link

hron84 commented Dec 28, 2022

@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";
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File to import not found or unreadable: font-awesome-sprockets
6 participants