You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see there is one on the noscript and the other one outside.
The one outside will be "relocated" from src/assets/favicon.svg to /assets/favicon-c725382f.svg
See the snippet from index.html of my react application.
Before building for production:
<noscript>
<div style="position: fixed; margin: 0px auto; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 30000000"; text-align: center">
<img src="src/assets/favicon.svg" width="64" height="64" style="display:block; margin: 0px auto">
<p><b>You need to enable JavaScript to run this app.</b></p>
</div>
</noscript>
<img src="src/assets/favicon.svg" width="64" height="64" style="display:block; margin: 0px auto">
After:
<noscript>
<div style="position: fixed; margin: 0px auto; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 30000000"; text-align: center">
<img src="src/assets/favicon.svg" width="64" height="64" style="display:block; margin: 0px auto">
<p><b>You need to enable JavaScript to run this app.</b></p>
</div>
</noscript>
<img src="/assets/favicon-c725382f.svg" width="64" height="64" style="display:block; margin: 0px auto">
Reproduction
?
Steps to reproduce
add noscript to your index.html with one img inside.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
As you can see there is one on the noscript and the other one outside.
The one outside will be "relocated" from src/assets/favicon.svg to /assets/favicon-c725382f.svg
See the snippet from index.html of my react application.
Before building for production:
After:
Reproduction
?
Steps to reproduce
add noscript to your index.html with one img inside.
yarn run build vite
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: