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
Assets imports such as images (in my case a PNG) are not handled correctly during the SSR build.
Example:
if we have something like:
<img src="./assets/logo.png" />
in a component, the entry-server.js will include something like:
entry-server.js
var _imports_0 = "/logo.png";
which resolves to nothing. The import should be something like /assets/logo.<hash>.png.
/assets/logo.<hash>.png
To reproduce this, adding an image in the ssr playground and importing it in App.vue, should be enough to demonstrate the defect.
vite
The text was updated successfully, but these errors were encountered:
68960f7
No branches or pull requests
Describe the bug
Assets imports such as images (in my case a PNG) are not handled correctly during the SSR build.
Example:
if we have something like:
in a component, the
entry-server.js
will include something like:which resolves to nothing. The import should be something like
/assets/logo.<hash>.png
.Reproduction
To reproduce this, adding an image in the ssr playground and importing it in App.vue, should be enough to demonstrate the defect.
System Info
vite
version: 2.0.0-beta.48The text was updated successfully, but these errors were encountered: