coolify/vite.config.ts

31 lines
1,020 B
TypeScript
Raw Permalink Normal View History

2025-11-30 15:50:04 +00:00
import { defineConfig } from 'vite';
2025-04-22 19:07:24 +00:00
import laravel from 'laravel-vite-plugin';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import tailwindcss from '@tailwindcss/vite';
2023-03-17 14:33:48 +00:00
2025-11-30 15:50:04 +00:00
export default defineConfig({
plugins: [
laravel({
2026-03-04 16:15:42 +00:00
input: ['resources/js/app.ts'],
2025-11-30 15:50:04 +00:00
refresh: true,
}),
svelte({
configFile: 'svelte.config.ts',
// TODO: Remove once Inertia v3 https://github.com/inertiajs/inertia/tree/3.x is released and runes=true is set in svelte.config.ts
dynamicCompileOptions({ filename, compileOptions }) {
// Enforce runes mode for all files not in node_modules
if (!/[\\/]node_modules[\\/]/.test(filename) && !compileOptions.runes) {
return { runes: true };
}
return undefined;
}
}),
tailwindcss(),
2025-11-30 15:50:04 +00:00
],
server: {
watch: {
ignored: ['**/storage/framework/views/**'],
},
},
2023-03-17 14:33:48 +00:00
});