From df51536947979be7e0b23885de2cb6bbe72f2848 Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Fri, 12 Apr 2024 19:09:07 +0200 Subject: [PATCH] configs --- svelte.config.js | 17 +---------------- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index f6fb6a7..620199e 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -10,32 +10,17 @@ const config = { extensions: ['.svelte', ...(mdsvexConfig.extensions || [])], // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors - preprocess: [ - preprocess({ postcss: true }), - - // No neeed rn unless using mdsvex highlighter with svelte components - //mdsvexGlobalComponents({ - // dir: `$lib/components/blog`, - // list: ['CodeFence.svelte'], - // extensions: ['.md'] - // }), - mdsvex(mdsvexConfig) - ], + preprocess: [preprocess({ postcss: true }), mdsvex(mdsvexConfig)], vitePlugin: { inspector: true }, kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter({ out: 'build', precompress: false }), - // Aliases need tsconfig explicit inclusion alias: { $lib: './src/lib', $root: './', diff --git a/tsconfig.json b/tsconfig.json index 06ad257..694b253 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,8 @@ "./src/**/*.ts", ".svelte-kit/ambient.d.ts", ".svelte-kit/types/**/$types.d.ts", - "./csp-directives.ts" + "./csp-directives.ts", + "./src/content/**/*" ], "exclude": ["node_modules/*"] // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias