]> git.r.bdr.sh - rbdr/forum/blobdiff - vite.config.js
Port to sveltekit
[rbdr/forum] / vite.config.js
index e4b56a21767205a6a22885ee31fbc826ab676086..6c17dac24e5a3c16b7ad5d5424276bc68afbca38 100644 (file)
@@ -1,11 +1,19 @@
 // Consult https://vitejs.dev/config/ to learn about these options
 import { resolve } from 'path';
+import Svelte from '@sveltejs/vite-plugin-svelte';
 
 export default {
+  optimizeDeps: {
+    exclude: ['@roxi/routify']
+  },
+  plugins: [
+    Svelte({
+      emitCss: true
+    })
+  ],
   resolve: {
     alias: {
-      $components: resolve('src/components'),
-      $config: resolve('src/config')
+      $: resolve('src')
     }
   }
 };