You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does one specify the url of a background image (or other asset in the asset pipeline) in application.tailwind.css so that the asset url is generated properly?
With the sass-rails gem, I believe the following approaches work:
background-image: image-url(‘waves.png’);
// or
background-image: url(image_path(‘waves.png’));
I’ve tried both of these (along with asset_path) with tailwind-rails to no avail.
Has anyone done this in their application? Thanks!
The text was updated successfully, but these errors were encountered:
How does one specify the url of a background image (or other asset in the asset pipeline) in
application.tailwind.css
so that the asset url is generated properly?With the
sass-rails
gem, I believe the following approaches work:I’ve tried both of these (along with
asset_path
) with tailwind-rails to no avail.Has anyone done this in their application? Thanks!
The text was updated successfully, but these errors were encountered: