1
0
website/svelte.config.js

33 lines
678 B
JavaScript
Raw Normal View History

import adapter from "@sveltejs/adapter-static";
2024-07-11 15:51:49 +03:00
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
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 = {
extensions: ['.svelte', '.md', '.svx'],
preprocess: [
vitePreprocess(),
mdsvex({
extensions: ['.md', '.svx'],
rehypePlugins: [
rehypeSlug,
rehypeAutolinkHeadings,
],
smartypants: { dashes: 'oldschool' },
layout: './src/routes/+layout.svelte',
}),
],
2024-07-11 15:51:49 +03:00
kit: {
adapter: adapter({
precompress: true,
}),
2024-07-11 15:51:49 +03:00
}
};
export default config;