website/svelte.config.js

40 lines
780 B
JavaScript
Raw Normal View History

2024-04-23 14:58:48 +10:00
import adapter from '@sveltejs/adapter-static';
2024-04-23 22:43:13 +10:00
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from "mdsvex";
2024-04-24 20:01:55 +10:00
import attr from "rehype-attr";
2024-04-24 19:08:39 +10:00
import emoji from "remark-emoji";
import gfm from "remark-gfm";
import rehypeExternalLinks from "rehype-external-links";
2024-04-23 14:58:48 +10:00
/** @type {import('@sveltejs/kit').Config} */
export default {
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
})
2024-04-23 22:43:13 +10:00
},
extensions: [".svelte", ".md"],
preprocess: [
vitePreprocess(),
2024-04-24 19:08:39 +10:00
mdsvex({
extensions: [".md"],
remarkPlugins: [
emoji,
gfm
],
rehypePlugins: [
2024-04-24 20:01:55 +10:00
[attr, { properties: 'attr' }],
2024-04-24 19:08:39 +10:00
[rehypeExternalLinks, {
target: "_blank"
}]
]
})
2024-04-23 22:43:13 +10:00
]
2024-04-23 14:58:48 +10:00
};