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
2.7.8
github.com/jonaskuske/vue2-asset-base-repro
npm i
npm run dev
localhost:5179
javascript.svg
The image src is transformed to a valid URL (http://locahost:5173/...)
src
http://locahost:5173/...
Since all parts are passed to path.join, the URL breaks as one slash is stripped from the protocol (http:/localhost:5173/...)
path.join
http:/localhost:5173/...
This is fixed in the v3 version of compiler-sfc, submitted a PR that applies the same behavior to v2 :)
The text was updated successfully, but these errors were encountered:
fix(compiler-sfc): allow full hostnames in asset url base (#12732)
5c742eb
fix #12731
Successfully merging a pull request may close this issue.
Version
2.7.8
Reproduction link
github.com/jonaskuske/vue2-asset-base-repro
Steps to reproduce
npm i
to install dependenciesnpm run dev
to start the Vite dev serverlocalhost:5179
javascript.svg
fails because the URL is brokenWhat is expected?
The image
src
is transformed to a valid URL (http://locahost:5173/...
)What is actually happening?
Since all parts are passed to
path.join
, the URL breaks as one slash is stripped from the protocol (http:/localhost:5173/...
)This is fixed in the v3 version of compiler-sfc, submitted a PR that applies the same behavior to v2 :)
The text was updated successfully, but these errors were encountered: