webcompile/svelte.config.js

26 lines
531 B
JavaScript
Raw Normal View History

import adapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";
2022-07-03 01:23:41 +05:30
import { mdsvex } from "mdsvex";
2022-02-28 23:42:33 +05:30
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
2022-07-03 01:23:41 +05:30
extensions: [".svelte", ".md"],
2022-02-28 23:42:33 +05:30
2022-07-03 01:23:41 +05:30
preprocess: [
preprocess(),
mdsvex({
extensions: [".md"],
layout: "./src/lib/MDsvexLayout.svelte"
})
],
2022-02-28 23:42:33 +05:30
kit: {
2022-09-08 17:40:19 +05:30
adapter: adapter(),
trailingSlash: "always"
}
2022-02-28 23:42:33 +05:30
};
export default config;