2024-08-08 03:33:36 +03:00
|
|
|
import adapter from "@sveltejs/adapter-static";
|
2024-07-11 15:51:49 +03:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
2024-08-08 03:33:36 +03:00
|
|
|
import { mdsvex } from 'mdsvex'
|
|
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
|
|
|
import rehypeSlug from 'rehype-slug'
|
|
|
|
|
2024-07-11 15:51:49 +03:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2024-08-08 03:33:36 +03:00
|
|
|
extensions: ['.svelte', '.md', '.svx'],
|
|
|
|
|
|
|
|
preprocess: [
|
|
|
|
vitePreprocess(),
|
|
|
|
mdsvex({
|
|
|
|
extensions: ['.md', '.svx'],
|
|
|
|
rehypePlugins: [
|
|
|
|
rehypeSlug,
|
|
|
|
rehypeAutolinkHeadings,
|
|
|
|
],
|
|
|
|
smartypants: { dashes: 'oldschool' },
|
2024-08-08 04:46:38 +03:00
|
|
|
layout: {
|
|
|
|
_: './src/routes/+layout.svelte',
|
|
|
|
blogpost: './src/routes/posts/_layout.svelte',
|
|
|
|
},
|
2024-08-08 03:33:36 +03:00
|
|
|
}),
|
|
|
|
],
|
2024-07-11 15:51:49 +03:00
|
|
|
|
|
|
|
kit: {
|
2024-08-08 03:33:36 +03:00
|
|
|
adapter: adapter({
|
|
|
|
precompress: true,
|
|
|
|
}),
|
2024-07-11 15:51:49 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|