-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsvelte.config.js
More file actions
29 lines (27 loc) · 864 Bytes
/
Copy pathsvelte.config.js
File metadata and controls
29 lines (27 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Tauri doesn't have a Node.js server to do proper SSR
// so we use adapter-static with a fallback to index.html to put the site in SPA mode
// See: https://svelte.dev/docs/kit/single-page-apps
// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
vitePreprocess(),
{
name: "cubic-theme-layer",
// Unlayered Inject.css rules can override scoped component styles
// without knowing Svelte's generated classes or using !important.
style: ({ content }) => ({ code: `@layer cubic {\n${content}\n}` }),
},
],
kit: {
adapter: adapter({
fallback: "index.html",
}),
alias: {
"@static": "./static",
},
},
};
export default config;