Skip to content

Commit c179bb2

Browse files
committed
chore(deps): migrate svelte-sitemap from CLI to Vite plugin
1 parent dbdb7cf commit c179bb2

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)