-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
mime type for .ico file is undefined #7083
Labels
Comments
Related lukeed/mrmime#3 |
It's safe when either the file is large enough to be extract as a separate asset, or it is not an |
None of the repos you provided have |
Sorry it seems I failed to save, I have edited it to https://stackblitz.com/edit/vitejs-vite-7ogktc?file=index.html&terminal=dev |
yes I see :p |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
mrmime
doesn't support mime type lookup for.ico
files, it returnsundefined
.Run
vite build && cat dist/index.html
in reproduction, we can see adata:undefined/base64,
string.Given that
.ico
is a widely used format for favicons, how about we hard coding a mime type for it infileToBuiltUrl
function?Reproduction
https://stackblitz.com/edit/vitejs-vite-7ogktc?file=index.html&terminal=dev
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: