We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In dev mode, both image filenames contain space or not will serve fine:
But the build will fail when met the image assets whose filename contains space:
See https://stackblitz.com/edit/vite-upxxuh?file=docs%2Fbook%2Fresources%2Ftest%20(1).svg,docs%2Findex.md,docs%2Fbook%2Fresources%2Ftest.svg,
add a image filename contains space and build.
Build should succeed.
Ideally should decodeURIComponent when converting ![](image%20(1).png] to code.
decodeURIComponent
![](image%20(1).png]
So the converted code should be like import image from "image (1).png" instead of import image from "image%20(1).png".
import image from "image (1).png"
import image from "image%20(1).png"
❯ npx envinfo --system --npmPackages vitepress --binaries --browsers Need to install the following packages: [email protected] Ok to proceed? (y) y System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.20.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 9.4.2 - /usr/local/bin/npm pnpm: 8.6.3 - /usr/local/bin/pnpm npmPackages: vitepress: v1.0.0-beta.5 => 1.0.0-beta.5
No response
The text was updated successfully, but these errors were encountered:
Duplicate of #573
Sorry, something went wrong.
fix(compiler-sfc): support asset paths containing spaces (#8752)
36c99a9
By decoding them before generating them as JavaScript import paths fix vuejs/vitepress#2596 fix vuejs/vitepress#573
1844f21
fix(compiler-sfc): support asset paths containing spaces (vuejs#8752)
b7fb0ce
No branches or pull requests
Describe the bug
In dev mode, both image filenames contain space or not will serve fine:
But the build will fail when met the image assets whose filename contains space:
Reproduction
See https://stackblitz.com/edit/vite-upxxuh?file=docs%2Fbook%2Fresources%2Ftest%20(1).svg,docs%2Findex.md,docs%2Fbook%2Fresources%2Ftest.svg,
add a image filename contains space and build.
Expected behavior
Build should succeed.
Ideally should
decodeURIComponent
when converting![](image%20(1).png]
to code.So the converted code should be like
import image from "image (1).png"
instead ofimport image from "image%20(1).png"
.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: