From 18aede91be332a122ab32ae049aaa7c217270dd1 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 27 Jul 2022 21:04:51 +0200 Subject: setup mdsvex --- web/pw-server/svelte.config.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'web/pw-server/svelte.config.js') diff --git a/web/pw-server/svelte.config.js b/web/pw-server/svelte.config.js index 4eddd58..197fa56 100644 --- a/web/pw-server/svelte.config.js +++ b/web/pw-server/svelte.config.js @@ -1,15 +1,21 @@ import adapter from "@sveltejs/adapter-node"; -import preprocess from "svelte-preprocess"; +import sveltePreprocess from "svelte-preprocess"; import { viteCommonjs } from "@originjs/vite-plugin-commonjs"; import wasmPack from "vite-plugin-wasm-pack"; import { isoImport } from "vite-plugin-iso-import"; +import { mdsvex } from "mdsvex"; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors - preprocess: preprocess(), - + preprocess: [ + sveltePreprocess(), + mdsvex({ + extensions: ['.md'] + }), + ], + extensions: ['.svelte', '.md'], kit: { adapter: adapter(), -- cgit v1.2.3