Sveltekit under-the-hood magic fix, need postcss preprocess first, include .svelte-kit/

This commit is contained in:
matthieu42morin 2023-11-16 04:29:08 +01:00
parent 6fd945c6cd
commit cf83932f20
2 changed files with 3 additions and 2 deletions

View File

@ -17,10 +17,11 @@ const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors // Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors // for more information about preprocessors
preprocess: [ preprocess: [
vitePreprocess(),
preprocess({ preprocess({
postcss: true postcss: true
}), }),
vitePreprocess(),
// No neeed rn unless using mdsvex highlighter with svelte components // No neeed rn unless using mdsvex highlighter with svelte components
//mdsvexGlobalComponents({ //mdsvexGlobalComponents({
// dir: `$lib/components/blog`, // dir: `$lib/components/blog`,

View File

@ -17,7 +17,7 @@
"sourceMap": true "sourceMap": true
}, },
"include": ["./scripts/**/*", "./test/*.js", "./*.js"], "include": ["./scripts/**/*", "./test/*.js", "./*.js"],
"exclude": ["node_modules/*", ".svelte-kit/*"] "exclude": ["node_modules/*"]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// //
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes