Skip to content

fix(create-vite): add missing quotes around viteLogo src attribute#22216

Merged
bluwy merged 4 commits intovitejs:mainfrom
nirajsbajaj:patch-1
Apr 14, 2026
Merged

fix(create-vite): add missing quotes around viteLogo src attribute#22216
bluwy merged 4 commits intovitejs:mainfrom
nirajsbajaj:patch-1

Conversation

@nirajsbajaj
Copy link
Copy Markdown
Contributor

The src attribute for viteLogo in the vanilla template was missing quotes around the template literal interpolation.

Before:

html
<img src=${viteLogo} class="vite" alt="Vite logo" />

After:

html
<img src="${viteLogo}" class="vite" alt="Vite logo" />

This makes it consistent with the other two image tags in the same block and ensures valid HTML attribute syntax.

Comment thread packages/create-vite/template-vanilla/src/main.js Outdated
bluwy added a commit to bluwy/create-vite-extra that referenced this pull request Apr 13, 2026
@bluwy bluwy changed the title fix: add missing quotes around viteLogo src attribute fix(create-vite): add missing quotes around viteLogo src attribute Apr 14, 2026
Copy link
Copy Markdown
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bluwy bluwy merged commit bb5203d into vitejs:main Apr 14, 2026
15 of 16 checks passed
@nirajsbajaj nirajsbajaj deleted the patch-1 branch April 17, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants