Skip to content

Commit 2408a7e

Browse files
committed
Merge #208: chore(deps): migrate svelte-sitemap from CLI to Vite plugin
c179bb2 chore(deps): migrate svelte-sitemap from CLI to Vite plugin (Jose Celano) Pull request description: ## Summary Migrate svelte-sitemap from the deprecated CLI postbuild script to the recommended Vite plugin. This eliminates the deprecation warning on every build. ## Changes - Add `svelteSitemap({ domain: 'https://torrust.com/' })` plugin to `vite.config.ts` - Remove `postbuild` script from `package.json` ## Checklist - [x] `npm run lint` passes - [x] `npm run check` passes - [x] `npm run build` succeeds — sitemap now generated via `Method: Vite plugin` (no deprecation warning) ACKs for top commit: josecelano: ACK c179bb2 Tree-SHA512: 35e18c0fd08ca3d9295414c7657fb22bd56f123b253bfc8fcaa298bb8fcdf25bdb14be3dc453f77f96afaacf8dea4926223e732fbb313a7873aa20f408e9f6c5
2 parents dbdb7cf + c179bb2 commit 2408a7e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1515
"format": "prettier --write .",
1616
"lint": "prettier --check . && eslint --ignore-pattern .svelte-kit/output .",
17-
"postbuild": "svelte-sitemap --domain https://torrust.com/",
1817
"update-contributors": "tsx scripts/updateContributors.ts",
1918
"pre-commit": "bash scripts/pre-commit.sh",
2019
"prepare": "git config core.hooksPath .githooks && chmod +x .githooks/pre-commit"

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { sveltekit } from '@sveltejs/kit/vite';
2+
import { svelteSitemap } from 'svelte-sitemap/vite';
23
import tailwindcss from '@tailwindcss/vite';
34
import path from 'path';
45
import type { UserConfig } from 'vite';
@@ -9,6 +10,7 @@ const config: UserConfig = {
910
plugins: [
1011
tailwindcss(),
1112
sveltekit(),
13+
svelteSitemap({ domain: 'https://torrust.com/' }),
1214
ViteImagemin({
1315
gifsicle: { optimizationLevel: 3 },
1416
optipng: { optimizationLevel: 5 },

0 commit comments

Comments
 (0)