diff options
| author | netop://ウィビ <paul@webb.page> | 2026-07-23 14:05:13 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-07-23 14:05:13 -0700 |
| commit | 0946abd0bc866ca1f0c073eb45e8e2c7822e4e44 (patch) | |
| tree | 5f74327da499a274af36691cf739265b82b846d6 /vite.config.ts | |
| parent | cc0677961c237748017fb5946455390af3a50ab6 (diff) | |
| download | homepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.tar.gz homepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.zip | |
updates deps and svelte config
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 70 |
1 files changed, 48 insertions, 22 deletions
diff --git a/vite.config.ts b/vite.config.ts index d2c0d07..581285d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,26 +1,52 @@ +/*** IMPORT ------------------------------------------- ***/ +import adapter from "@sveltejs/adapter-node"; -//// import - +import { defineConfig } from "vite"; import { sveltekit } from "@sveltejs/kit/vite"; -import type { UserConfig } from "vite"; - - - -//// export - -export default { - json: { - namedExports: true - }, - plugins: [sveltekit()], - server: { - fs: { - allow: [ - "package.json", - "sass" - ] - } - } -} satisfies UserConfig; +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; + +/*** EXPORT ------------------------------------------- ***/ + +export default defineConfig({ + plugins: [ + sveltekit({ + adapter: adapter(), + compilerOptions: { + /*** Force runes mode for the project, except for libraries. Can be removed in Svelte 6. ***/ + runes: ({ filename }) => filename.split(/[/\\]/).includes("node_modules") ? undefined : true + }, + preprocess: [vitePreprocess()] + }) + ], + server: { + allowedHosts: ["scilab.local"] + } +}); + + + +// //// import + +// import { sveltekit } from "@sveltejs/kit/vite"; +// import type { UserConfig } from "vite"; + + + +// //// export + +// export default { +// json: { +// namedExports: true +// }, +// plugins: [sveltekit()], +// server: { +// fs: { +// allow: [ +// "package.json", +// "sass" +// ] +// } +// } +// } satisfies UserConfig; |