diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-27 21:04:51 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-27 21:04:51 +0200 |
commit | 18aede91be332a122ab32ae049aaa7c217270dd1 (patch) | |
tree | 342d8119e93830aa7dc07789ee03e45be9b83c9f /web | |
parent | 1d280c62e23cf1f52398c4fe11474fdde4aaa74c (diff) | |
download | planetwars.dev-18aede91be332a122ab32ae049aaa7c217270dd1.tar.xz planetwars.dev-18aede91be332a122ab32ae049aaa7c217270dd1.zip |
setup mdsvex
Diffstat (limited to 'web')
-rw-r--r-- | web/pw-server/package.json | 1 | ||||
-rw-r--r-- | web/pw-server/svelte.config.js | 12 |
2 files changed, 10 insertions, 3 deletions
diff --git a/web/pw-server/package.json b/web/pw-server/package.json index c8be055..474f38c 100644 --- a/web/pw-server/package.json +++ b/web/pw-server/package.json @@ -22,6 +22,7 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.1", "luxon": "^2.3.0", + "mdsvex": "^0.10.6", "prettier": "^2.4.1", "prettier-plugin-svelte": "^2.4.0", "sass": "^1.49.7", 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(), |