Skip to content
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

Asset imports with ?url don't work in prodution #270

Open
BierDav opened this issue Apr 3, 2024 · 1 comment
Open

Asset imports with ?url don't work in prodution #270

BierDav opened this issue Apr 3, 2024 · 1 comment

Comments

@BierDav
Copy link

BierDav commented Apr 3, 2024

Hello,
in my vinxi project I have imported an svg using following code:

import linesFull from "~/assets/lines/linesFull.svg?url";

I need the ?url, because instead vite resolves this import with an inlined svg in a url(...) thingens. And this code works completely fine in development.

But when building using vinxi build and running the build using node .output/server/index.mjs the svg again gets inlined, what I don't want.

I think that this is a bug of vinxi, because in bare vite this works fine

@BierDav
Copy link
Author

BierDav commented Jun 1, 2024

Do need a repro, or when can we expect a bug fix for this. This is a quite essential feature of vite and the fact that it is not working in vinxi is very sad 🥺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant