svelte-deployment
Original:🇺🇸 English
Not Translated
Svelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.
1installs
Added on
NPX Install
npx skill4agent add dawiddutoit/custom-claude svelte-deploymentSKILL.md Content
IMPORTANT: Keep description on ONE line for Claude Code compatibility
prettier-ignore
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@6Adapters
bash
# Static site
pnpm add -D @sveltejs/adapter-static
# Node server
pnpm add -D @sveltejs/adapter-node
# Cloudflare
pnpm add -D @sveltejs/adapter-cloudflareReference Files
- library-authoring.md - Publishing Svelte packages
- pwa-setup.md - Offline-first with workbox
- cloudflare-gotchas.md - Streaming issues
Notes
- Cloudflare may strip (breaks streaming)
Transfer-Encoding: chunked - Library authors: include in keywords AND peerDependencies
svelte - Single-file bundle:
kit.output.bundleStrategy: 'single' - Last verified: 2025-01-14