Files
svelte_learn/svelte.config.js
lirui 39d8630e87 feat: 初始化 SvelteKit 项目基础结构和示例组件
- 添加项目配置文件(.npmrc, pnpm-workspace.yaml, prettier 配置等)
- 设置基础路由和布局组件
- 实现示例组件展示 Svelte 5 新特性($state, $derived 等)
- 配置测试环境(单元测试和 E2E 测试)
- 添加静态资源和 favicon
2026-01-14 17:39:00 +08:00

19 lines
662 B
JavaScript

import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
}
};
export default config;