-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] after setting base, vite failed to handle assets with absolute paths in dev mode #1442
Comments
cc @meteorlxy A real repro here: https://stackblitz.com/edit/vuepress-theme-hope-pbl7xt?file=package.json,README.md Seems to be a serious bug. From our docs, the base should be appended. |
Can you provide details with production? The above information is devServer. |
我将你的复现换成了 vite4,图片可以正常显示了 https://stackblitz.com/edit/vuepress-theme-hope-umxnhe?file=package.json,docs%2FREADME.md |
经过测试 |
cc @meteorlxy |
The parsing template is not provided to |
Maybe we can port the fix vuejs/vitepress#3239 |
The current fix only works on vite. A better solution might be a markdown-it plugin as @XiSenao proposed. --- update For webpack, you can enable |
Description
当配置 base 后不会处理图片地址,导致图片无法显示
Reproduction
https://stackblitz.com/edit/vuepress-theme-hope-4jgewz?file=docs%2Fdemo%2FREADME.md,docs%2F.vuepress%2Fclient.ts,docs%2F.vuepress%2Fconfig.ts
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: