I've been trying to add a background picture with the help of Tailwind in my project but it won't work, I'm guessing because of an asset-pipeline conflict somewhere ?
What I've tried:
- Inserting the image directly in my
tailwind.configlike so:'essential-oil': "url('/assets/images/essential-oil.png')",'essential-oil': "asset-url('essential-oil.png')" - Inserting the image directly in my HTML with a
style: "background-image:url(/assets/images/essential-oil.png) - Putting my image in an other place in the app like
Public
None of the solutions work. At worse, all of my style disappear from my HTML at best, the style looks ok but the picture is not there. Any idea ?
Thank you.