{"repo":"bartholomej/svelte-sitemap","free":true,"listed":false,"github":"https://github.com/bartholomej/svelte-sitemap","clone":"git clone https://github.com/bartholomej/svelte-sitemap.git","description":"Sitemap generator for SvelteKit. Small helper which scans your SvelteKit routes and generates static sitemap.xml","language":"TypeScript","stars":357,"topics":["svelte","sveltejs","router","sitemap-generator","sitemap-xml","generator","typescript","typescript-library","svelte-library","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"🗺️ Svelte sitemap.xml generator Generates sitemap.xml from your SvelteKit static routes — automatically, on every build. --- - ➡️ Designed for SvelteKit adapter-static with prerender option (SSG) - 🔷 TypeScript, JavaScript, CLI and Vite plugin version - 🔧 Useful options for customizing your sitemap - 🗂️ Support for sitemap index for large sites (50K+ pages) - ▲ 🟠 Works with Vercel and Cloudflare adapters and more... 📦 Install 🚀 Usage If you're using SvelteKit with Vite (which is the default), you can integrate the sitemap generation directly into the Vite build pipeline. Add the plugin to your vite.config.ts : The sitemap is generated automatically at the end of every vite build . All options are supported. --- Alternative Methods For other setups, the following methods are still supported but are deprecated in favor of the Vite plugin. ✨ Config file [!WARNING] Running the generator via CLI is an alternative. We recommend migrating to the Vite plugin instead. Create a config file svelte-sitemap.config.ts in the root of your project: Then add svelte-sitemap as a postbuild script in package.json : After every build , the sitemap is generated in your build/ folder. ⌨️ CLI flags (Deprecated) [!WARNING] Passing configuration options directly as CLI flags is deprecated and will be removed in a future version. Please use the Vite plugin or a config file instead. Pass options directly as CLI flags — no config file needed: See all available flags in the Options table below. 🔧 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/bartholomej","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bartholomej/svelte-sitemap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}