Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andreock/sveltekit-sitemap-generator

Generate sitemap from sveltekit project
https://github.com/andreock/sveltekit-sitemap-generator

Last synced: about 2 months ago
JSON representation

Generate sitemap from sveltekit project

Awesome Lists containing this project

README

        

# Sveltekit Sitemap Generator

Generate sitemap from sveltekit project.

## Usage

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

```typescript
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