vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.43k stars 4.78k forks source link

Support webp image #2746

Open scorpiozj opened 3 years ago

scorpiozj commented 3 years ago

Feature request

What problem does this feature solve?

I use webp image in markdown,and after run dev, the chrome can't show the image. After inspecting the element, the console shows there is error, and the link for the image is something like: /link/[object object].
Then I rename the webp to png, like a.webp->a.png. In this case, chrome can show the image but safari can't show it.
I propose the Vuepress can support webp image.

What does the proposed API look like?

not applied.

How should this be implemented in your opinion?

Sorry, I don't know.

Are you willing to work on this yourself?

I'm not a front-end developer.
But I'd like to have a try if there is how-to.

eulier1 commented 9 months ago

👀