blog/svelte.config.js

24 lines
473 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 = {
extensions: ['.svelte', '.svx'],
2021-10-25 15:09:37 +00:00
preprocess: [
mdsvex({
layout: './src/lib/Post.svelte',
rehypePlugins: [slug],
}),
svp.scss(),
],
2021-10-18 04:05:23 +00:00
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
adapter: staticAdapter(),
2021-10-18 04:05:23 +00:00
}
};
export default config;