Agent skill

svelte-deployment

Svelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/svelte-deployment

SKILL.md

Svelte Deployment

Quick Start

pnpm 10+: Add prepare script (postinstall disabled by default):

json
{
	"scripts": {
		"prepare": "svelte-kit sync"
	}
}

Vite 7: Update both packages together:

bash
pnpm add -D vite@7 @sveltejs/vite-plugin-svelte@6

Adapters

bash
# Static site
pnpm add -D @sveltejs/adapter-static

# Node server
pnpm add -D @sveltejs/adapter-node

# Cloudflare
pnpm add -D @sveltejs/adapter-cloudflare

Reference Files

Notes

  • Cloudflare may strip Transfer-Encoding: chunked (breaks streaming)
  • Library authors: include svelte in keywords AND peerDependencies
  • Single-file bundle: kit.output.bundleStrategy: 'single'
  • Last verified: 2025-01-14

Didn't find tool you were looking for?

Be as detailed as possible for better results