-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
48 lines (44 loc) · 1.07 KB
/
svelte.config.js
File metadata and controls
48 lines (44 loc) · 1.07 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
42
43
44
45
46
47
48
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import adapter from '@sveltejs/adapter-netlify'
import { mdsvex } from 'mdsvex'
import remarkGithub from 'remark-github'
import remarkAbbr from 'remark-abbr'
import rehypeSlug from 'rehype-slug'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
// mdsvex config
const mdsvexConfig = {
// extensions: ['.svelte.md', '.md', '.svx'],
// layout: {
// _: import.meta.dirname + '/src/mdsvexlayout.svelte', // default mdsvex layout
// },
remarkPlugins: [
[
remarkGithub,
{
// Use your own repository
repository: 'https://github.com/tjheffner/heffdotdev.git',
},
],
remarkAbbr,
],
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap',
},
],
],
}
const config = {
extensions: ['.svelte', '.html', '.svx'], // ...mdsvexConfig.extensions
preprocess: [mdsvex(mdsvexConfig), vitePreprocess()],
outDir: 'public',
kit: {
adapter: adapter({
split: true,
}),
},
}
export default config