首页/ AI 技能 / @skilllib/skill-2014279397354713090
Skill站外收录 @skilllib/skill-2014279397354713090

svelte-deployment

提供 Svelte 应用从开发到生产部署的完整技术路径,涵盖构建配置、适配器集成、PWA 实现、库发布规范及常见平台注意事项,支持 pnpm、Vite 和各类托管环境的高效落地。

0.0 (0) 147 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.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 - [library-authoring.md](references/library-authoring.md) - Publishing Svelte packages - [pwa-setup.md](references/pwa-setup.md) - Offline-first with workbox - [cloudflare-gotchas.md](references/cloudflare-gotchas.md) - Streaming issues ## 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 <!-- PROGRESSIVE DISCLOSURE GUIDELINES: - Keep this file ~50 lines total (max ~150 lines) - Use 1-2 code blocks only (recommend 1) - Keep description <200 chars for Level 1 efficiency - Move detailed docs to references/ for Level 3 loading - This is Level 2 - quick reference ONLY, not a manual -->

评论 0

还没有评论,来抢沙发。