Replies: 1 comment
-
Well this was as far as I got, good enough for me; sharing if anyone else is struggling. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am overwhelmed by the amount of ways to do things with svelte/sveltekit/vite/mdsvex so am looking for some feedback. I just want to use the recommended
enhanced-img
throughout my blog. I am no frontend/fullstack dev.I had initially set up my blog with all images in the
/static
dir. I would use them like this:I tried using
@sveltejs/enhanced-img
andmdsvex-enhanced-images
to do the migration.For markdown, I could only get this part to work by moving the images to
src/lib/assets/images
(which seemed like a good idea based on this) and:
=>
I could not get any of the other approaches to work with
enhanced-img
. After countless hours of searching, it would seemenhanced-img
just doesn't work dynamically (so with the path from mdsvex-parsed-markdown)? Andmdsvex-enhanced-images
does not work with static?So is this migration just a lost cause?
I'd appreciate any feedback on how you'd proceed if you were me.
Beta Was this translation helpful? Give feedback.
All reactions