You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It scans your routes in `build/` folder and generates `build/sitemap.xml` file
32
55
33
-
### Alternative: TypeScript or JavaScript method
56
+
### Alternative 1: TypeScript or JavaScript method
34
57
35
58
Sometimes it can be useful to call the script directly from JavaScript or TypeScript. Of course there is also this option, but in most cases you will need the [CLI method](#cli-method-recommended) as a postbuild hook.
36
59
@@ -46,17 +69,28 @@ And now you can run your script like this: `node my-script.js`
46
69
47
70
## Example
48
71
49
-
Use this library as a `postbuild` hook in your `package.json`
72
+
Use this library as a `postbuild` hook in your `package.json` with config file `svelte-sitemap.cjs` in your project root.
- svelte-sitemap is workaround for [this official SvelteKit issue](https://github.com/sveltejs/kit/issues/1142)
139
173
- Brand new version is inspired by [Richard's article](https://r-bt.com/learning/sveltekit-sitemap/)
140
174
- Thanks to [@auderer](https://github.com/auderer) because [his issue](https://github.com/bartholomej/svelte-sitemap/issues/1) changed the direction of this library
175
+
- Config files inspired by [next-sitemap](https://github.com/iamvishnusankar/next-sitemap)
0 commit comments