sveltekit-sitemap-generator

Sveltekit Sitemap Generator

Generate sitemap from sveltekit project

Sveltekit Sitemap Generator

Generate sitemap from sveltekit project.

Usage

Just import this plugin in your vite.config.ts and start server

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { Sitemap } from 'vite-plugin-svelte-sitemap';

export default defineConfig({
    plugins: [sveltekit(), Sitemap({
        baseurl: "http://example.com"   // Don't put trailing slash at the end
    })]
});

Check demo folder for more information

Credits

Plugin template from: https://github.com/wesbos/vite-plugin-list-directory-contents

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes