Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andreock/sveltekit-sitemap-generator
- Owner: andreock
- Created: 2023-02-23T09:59:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T12:17:06.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T00:10:04.572Z (8 months ago)
- Language: TypeScript
- Size: 577 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
### CreditsPlugin template from: https://github.com/wesbos/vite-plugin-list-directory-contents