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
37
60
38
-
### TypeScript or JavaScript method (optional)
61
+
### TypeScript or JavaScript method (Alternative 2)
39
62
40
63
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.
41
64
@@ -49,13 +72,13 @@ And now you can run your script like this: `node my-script.js`
49
72
50
73
## Example
51
74
52
-
Highly recommended to use as `postbuild` hook in your `package.json`
75
+
Highly recommended to use as `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)
115
138
- Brand new version is inspired by [Richard's article](https://r-bt.com/learning/sveltekit-sitemap/)
116
139
- Thanks to [@auderer](https://github.com/auderer) because [his issue](https://github.com/bartholomej/svelte-sitemap/issues/1) changed the direction of this library
140
+
- Config files inspired by [next-sitemap](https://github.com/iamvishnusankar/next-sitemap)
0 commit comments