Link to an image? #1227
-
I know this isn't a problem with VuePress per se, which is why I'm posting as a question/discussion, but what am I doing wrong? When using vuepress-webpack, I can have an image and it will properly get bundled but if I have a link to the image, the link is not pointing to the correctly bundled asset. How do I accomplish such behavior with vuepress-webpack? To reproduce: npm init -y
npm i -D -E vuepress-webpack@2.0.0-beta.60
wget https://github.com/vuepress/vuepress-next/raw/main/docs/.vuepress/public/images/hero.png
echo '# Test\n\nClick the link to the [logo](./hero.png).\n\n' > README.md
npx vuepress dev . --open The image is properly bundled and displayed but the link to the same asset is not. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
So do you have any issue accessing this page? And what's the confusion?https://v2.vuepress.vuejs.org/guide/assets.html |
Beta Was this translation helpful? Give feedback.
-
I already know the file can be moved into |
Beta Was this translation helpful? Give feedback.
-
Read these to understand the basic Webpack: Vite: Vue Cli: Smilar tools: Other ecosyterm:
Also just to make it clear, nobody maintaining this repo are expecting to answer noob questions like this. Go to stackoverflow, vue forum or other places. There is no techical support here, and we are willing to and ONLY willing to give you tips about vuepress itself. If you do not know any basic concerpt in our reply and docs which is not related to vuepress but about the base vuepress rely on, learn them yourself and try not let us explain them. I will omit any further questions from you which is about other things which are not actually related to vuepress , yet should be asked in othe places. |
Beta Was this translation helpful? Give feedback.
Read these to understand the basic
public
concerpt in frontend area (you are acting you do not)Webpack:
Vite:
Vue Cli:
Smilar tools:
Other ecosyterm:
Also just to make it clear, nobody maintaining this repo are expecting to answer noob questions like this. Go to stackoverflow, vue forum or oth…