2 years ago

#20719

test-img

ioanna marinou

Webp bg works on localhost but not on deployment tailwind + react

I use a webp image for bg on my reactjs+tailwind webapp and when I run my app with npm start it works fine but when it's deployed on aws the background disappears. I use the same browser so I don't get what's wrong. The rest of my backgrounds that are created the same exact way but have png format or svg work just fine.

 backgroundImage: {
        backgroundShip3: "url('/src/website-assets/ship/ship_textured.webp')",
      }

reactjs

tailwind-css

webp

0 Answers

Your Answer

Accepted video resources