A Vite plugin (v0.1.4) that automatically injects meta tags (title, description, Open Graph, Twitter Card, theme color) into your index.html. It is lightweight, ships TypeScript types, and supports custom tags and environment variable integration. Active development with rapid releases. Differentiator: focused solely on meta injection with zero-config defaults for common SEO tags, unlike broader HTML-transform plugins.
npm install vite-plugin-meta-tagsVerified import paths — ran on the pinned version, not inferred.
Basic usage: configure meta tags in vite.config.ts. Plugin injects title, meta description, Open Graph, Twitter Card, and theme color tags.
Upgrade to v0.1.4 or later; remove these options from your config.
Add '"type": "module"' to your package.json, or use a .mjs extension for your config file.
If you relied on custom tags being last, update your tag order logic after upgrading to v0.1.2+.
Use ES module imports: `import { meta } from 'vite-plugin-meta-tags'`. Add '"type": "module"' to package.json if needed.Ensure `import { meta } from 'vite-plugin-meta-tags'` is at the top of your vite.config and use `plugins: [meta({...})]`.