BrowserUX SEO Files
A simple and automated solution to generate SEO technical files (sitemap.xml, robots.txt) in all your Vite projects.
BrowserUX SEO Files is a lightweight and configurable Vite plugin that integrates seamlessly into your build process. It automatically generates the essential files for search engine indexing and crawling after each build. Compatible with both static sites and SPAs, it supports custom routes, targeted exclusions, and robot access rules, all with zero manual setup.
npm install vite-plugin-seo-files
Plugin for Vite
See the CHANGELOG
Key Features of vite-plugin-seo-files
- 🗺 Generates
sitemap.xmlwithloc,lastmod, andpriority - 🤖 Generates
robots.txtwithUser-agent,Disallow, andSitemap - 🔍 Two URL discovery modes: HTML file scan (static) or routes list file (SPA)
- 🔁 URL deduplication, no duplicate entries when combining sources
- 🚫 Glob-based file exclusion via
exclude - ➕ Extra URLs via
additionalUrls - 🔒 Configurable
Disallowpaths forrobots.txt - 📂 Output directory read from Vite's
build.outDir, no hardcoded paths - 🔧 Disable sitemap or robots independently
- 📦 Native ESM, TypeScript, bundled type declarations