-
Notifications
You must be signed in to change notification settings - Fork 39
/
svelte.config.js
41 lines (40 loc) · 1.05 KB
/
svelte.config.js
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
30
31
32
33
34
35
36
37
38
39
40
41
import path from "node:path"
import { sveltePreprocess } from "svelte-preprocess"
import adapterStatic from "@sveltejs/adapter-static"
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
/** @type {import('@sveltejs/kit').Config} */
export default {
preprocess: [
// https://kit.svelte.dev/docs/integrations#preprocessors-svelte-preprocess
vitePreprocess(),
sveltePreprocess({
postcss: {
configFilePath: "./postcss.config.cjs"
}
})
],
vitePlugin: {
experimental: {},
inspector: {
holdMode: true,
showToggleButton: "active",
toggleKeyCombo: "control-shift",
toggleButtonPos: "bottom-right"
}
},
kit: {
// https://kit.svelte.dev/docs/adapter-static
adapter: adapterStatic({
strict: true,
pages: "build",
assets: "build",
fallback: "index.html"
}),
/** @note `$` is a svelte path alias convention */
alias: {
$: path.resolve("./src/"),
$styles: path.resolve("./src/styles"),
"~static": path.resolve("./static/")
}
}
}