Replies: 1 comment
-
The rationale is written in #14958
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Vite to compile "front-end without a back-end", that is a standalone HTML page with all its assets inlined.
However the favicon (
<link href="icon"... />
) is not inlined, and this seems intentional.I can circumvent the problem (import the image through JS and append a link element manually) but this behaviour is not intuitive at all and undocumented as far I can tell. Plus, the comment in the code does not explain the rationale behind it (and seems outdated?).
Link to reproduce. Ctrl-C in the console,
vite build
and then look atdist/index.html
Beta Was this translation helpful? Give feedback.
All reactions