2023-11-10 15:48:23 +01:00
|
|
|
import { defineConfig } from 'vite';
|
2024-05-13 11:36:17 +02:00
|
|
|
import inspect from 'vite-plugin-inspect';
|
2023-11-10 15:48:23 +01:00
|
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
|
|
|
export default defineConfig({
|
2024-05-20 23:14:48 +02:00
|
|
|
build: {
|
|
|
|
minify: false
|
|
|
|
},
|
2024-07-01 20:52:03 +02:00
|
|
|
|
|
|
|
plugins: [
|
|
|
|
inspect(),
|
|
|
|
svelte({
|
|
|
|
compilerOptions: {
|
|
|
|
hmr: true
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
|
2023-11-27 14:34:06 +01:00
|
|
|
optimizeDeps: {
|
|
|
|
// svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change
|
|
|
|
exclude: ['svelte']
|
|
|
|
}
|
2023-11-10 15:48:23 +01:00
|
|
|
});
|