kisstkondoros / gutter-preview

Other
158 stars 37 forks source link

Not displaying files from different folders/variables #153

Open suwermave opened 1 year ago

suwermave commented 1 year ago

I'm using SvelteKit The static files are served on the site root path (eg. if you have the file static/image.png you can access it using http://{server-url}/image.png

It means that some paths to images is written without "/static" prefix. So gutter-preivew cannot found it. I could use "gutterpreview.sourceFolder":"static" but then something like "$lib/assets/LogoMono.svg" will stop working. Any solution? Here is how it looks without the option and with. Notice the missing SVG image image