-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsvelte.config.ts
More file actions
41 lines (37 loc) · 1.15 KB
/
svelte.config.ts
File metadata and controls
41 lines (37 loc) · 1.15 KB
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 adapter from "@sveltejs/adapter-node"
import type { Config } from "@sveltejs/kit"
import type { PreprocessorGroup } from "svelte/compiler"
import { sveltePreprocess } from "svelte-preprocess"
import atImport from "postcss-import"
import { mdsvex } from "mdsvex"
import { markdown } from "./src/lib/markdown.ts"
import { join, dirname } from "path"
import { fileURLToPath } from "url"
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export default {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
extensions: [".svelte", ".md"],
preprocess: [
sveltePreprocess({
postcss: {
plugins: [
atImport({
path: "static/css",
}),
],
},
}),
mdsvex({
extensions: [".md"],
layout: {
faq: join(__dirname, "./src/layouts/faq.svelte"),
},
remarkPlugins: [markdown],
}) as PreprocessorGroup,
],
kit: {
adapter: adapter(),
},
} satisfies Config