blog/svelte.config.js

26 lines
574 B
JavaScript
Raw Normal View History

import { mdsvex } from 'mdsvex';
import staticAdapter from '@sveltejs/adapter-static';
2021-10-25 15:09:37 +00:00
import svp from 'svelte-preprocess';
2021-10-22 04:25:28 +00:00
import slug from './src/lib/slug.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',
rehypePlugins: [slug],
}),
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;