CSS url links are not relative #18298
mitchellwarr
started this conversation in
Feedback
Replies: 1 comment 2 replies
-
Can you explain how you serve your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using in SCSS something lilke:
Vite will correctly import it for you and put it in your build folder. After deploying to a bucket and opening the index.html, the font cannot be found because vite compiled it to:
Where as it needs to be:
url(/TheFont.otf)
vsurl(./TheFont.otf)
I have tried the workaround of adding
base: "./"
to my vite config, and that did fix my issue here for css.Thought right now im trying to figure out how to get rid of the base tag in the html now as it completely breaks my buckets in loading any of the scripts
Beta Was this translation helpful? Give feedback.
All reactions