This commit is contained in:
matthieu42morin 2024-04-12 19:09:07 +02:00
parent 630841db19
commit df51536947
2 changed files with 3 additions and 17 deletions

View File

@ -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: './',

View File

@ -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