Skip to content

Commit

Permalink
Replace asset-url with url in Sass files
Browse files Browse the repository at this point in the history
Both Sprockets and Propshaft will replace `url` with a digested
version [1]. This change allows to use these Sass files with other
Sass implementations like, Dartsass [2].

[1] rails/dartsass-rails#18 (comment)
[2] https://github.com/rails/dartsass-rails
  • Loading branch information
jacob-carlborg-apoex committed Sep 9, 2024
1 parent b4fdd67 commit 0ddfb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/assets/stylesheets/rails_admin/font-awesome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
font-style: normal;
font-weight: 900;
font-display: block;
src: asset-url("rails_admin/fa-solid-900.woff2") format("woff2"), asset-url("rails_admin/fa-solid-900.ttf") format("truetype"); }
src: url("rails_admin/fa-solid-900.woff2") format("woff2"), url("rails_admin/fa-solid-900.ttf") format("truetype"); }

.fa,
.fas,
Expand Down

0 comments on commit 0ddfb19

Please sign in to comment.