Skip to content

Commit

Permalink
Fix .jpeg precompile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu committed Feb 10, 2023
1 parent 925fb65 commit 4285de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sprockets/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def load_from_unloaded(unloaded)
end

if type = unloaded.params[:type]
logical_path += config[:mime_types][type][:extensions].first
extensions = config[:mime_types][type][:extensions]
extension = extensions.include?(extname) ? extname : extensions.first
logical_path += extension
end

if type != file_type && !config[:transformers][file_type][type]
Expand Down

0 comments on commit 4285de9

Please sign in to comment.