
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.
Download v2.0.0
Plugin for Vite
See the CHANGELOG
npm install vite-plugin-seo-files
Features
-
-
πΊοΈ Automatically generates a complete
sitemap.xml
on each build -
π€ Creates a
robots.txt
file optimized for search engine crawling -
π Supports
.html
files indist/
with zero configuration -
π Supports Single Page Applications via
src/routes-list.js
-
β Allows adding custom URLs to the sitemap (
additionalUrls
) -
π« Easily excludes pages from the sitemap using
exclude
(glob patterns) -
π Blocks sensitive paths in
robots.txt
viadisallow
-
πΊοΈ Automatically generates a complete
-
-
π
Automatically detects each pageβs last modification date (
lastmod
) - π§ Works with all Vite-based frameworks (React, Vue, Svelte, etc.)
- π¦ Compatible with both ESM & CommonJS through automatic format detection
- π§ͺ No external dependencies, easy to maintain
-
βοΈ Ultra-light configuration, plug-and-play via
vite.config.js
-
π Fully automated on
vite build
, no manual steps needed
-
π
Automatically detects each pageβs last modification date (