How to handle css urls when paths.base is set #7472
Unanswered
raythurnvoid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've a custom paths.base value in my
svelte.config.js:and I load an image from the static folder in style tag:
I expect the URL to be transformed in
/custom/bg.jpg.I know in the script tag I have access to
import { base } from '$app/paths';but how do you handle it in the style tags ?Beta Was this translation helpful? Give feedback.
All reactions