2021-10-18 22:54:45 +00:00
|
|
|
import { mdsvex } from 'mdsvex';
|
|
|
|
import staticAdapter from '@sveltejs/adapter-static';
|
2021-10-25 15:09:37 +00:00
|
|
|
import svp from 'svelte-preprocess';
|
2023-08-19 19:45:02 +00:00
|
|
|
// import slug from './src/lib/slug.js';
|
|
|
|
// import { addDropcaps } from './src/lib/dropcapify.js';
|
|
|
|
import { localPlugins } from './src/plugins/rehype.js';
|
2021-10-18 04:05:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
const config = {
|
2022-05-12 03:41:23 +00:00
|
|
|
extensions: ['.svelte', '.svx'],
|
|
|
|
preprocess: [
|
|
|
|
mdsvex({
|
|
|
|
layout: './src/lib/Post.svelte',
|
2023-08-19 19:45:02 +00:00
|
|
|
rehypePlugins: [localPlugins],
|
2022-05-12 03:41:23 +00:00
|
|
|
}),
|
|
|
|
svp.scss(),
|
|
|
|
],
|
|
|
|
kit: {
|
|
|
|
// hydrate the <div id="svelte"> element in src/app.html
|
|
|
|
adapter: staticAdapter(),
|
2022-05-14 14:43:08 +00:00
|
|
|
prerender: {
|
|
|
|
default: true,
|
|
|
|
},
|
2022-05-12 03:41:23 +00:00
|
|
|
}
|
2021-10-18 04:05:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|