I have customized Background Image in tailwind.config file and it displays on the local host as expected, however after I deployed the site on Github pages, the background image doesn't display.
Here is the code in the tailwind.config file.
backgroundImage: {
'heroMobileBg': "url('/public/images/bg-intro-mobile.svg')",
'heroDesktopBg': "url('/public/images/bg-intro-desktop.svg')",
},
Here is where I used it.
<div class="bg-heroMobileBg bg-no-repeat bg-center bg-cover lg:bg-heroDesktopBg"></div>
I tried using the arbitrary values but still couldn't display on deployment. using the dev tools, I could see the background image stated.
.bg-heroMobileBg {
background-image: url(/public/images/bg-intro-mobile.svg);
}
I can't seem to figure out what am missing, kindly help me.