-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Document ?url
usage in Imports docs
#8417
Comments
?raw also might be worth mentioning |
We do have this information specifically for CSS imports, but I don't see it mentioned for other file imports. At a minimum, the CSS imports section of the imports page could be improved with a link to that "Advanced" section on the CSS page. And yes, it does seem like having something about the import parameters as they apply to other files would be a good addition here! I think in the "Other Assets" section makes sense? Would be happy to have someone make a PR with an addition using content from the Vite link Oliver dropped! (But not quite as long as that -- closer in length/scope to what we have on the CSS page) |
📋 Explain your issue
The Imports documentation page is missing info on appending
?url
(and other vite import parameters) to import paths to get URLs to arbitrary files for people that need to import anything else that isn't an image.The text was updated successfully, but these errors were encountered: