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
Description:
When building a new Vite project that includes both twitter:image and og:image meta tags in the HTML file, only the og:image meta tag is processed correctly, while the twitter:image meta tag remains unchanged.
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
Description:
When building a new Vite project that includes both
twitter:image
andog:image
meta tags in the HTML file, only theog:image
meta tag is processed correctly, while thetwitter:image
meta tag remains unchanged.Reproduction
https://stackblitz.com/edit/vitejs-vite-yt4r7ewn?file=dist%2Findex.html
Steps to reproduce
index.html
, add the following lines:npm run build
.Expected Behavior:
Both meta tags should have their
content
paths processed by Vite, resulting in the same hashed asset paths being applied to both.Actual Behavior:
After running the build:
og:image
meta tag is transformed correctly:twitter:image
meta tag remains unprocessed:Environment:
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: