diff options
Diffstat (limited to 'web/vite.config.ts')
| -rw-r--r-- | web/vite.config.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/web/vite.config.ts b/web/vite.config.ts new file mode 100644 index 0000000..d50c975 --- /dev/null +++ b/web/vite.config.ts @@ -0,0 +1,25 @@ +import { svelte } from '@sveltejs/vite-plugin-svelte'; +import { fileURLToPath } from 'node:url'; +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + plugins: [svelte()], + resolve: { + alias: { + $lib: fileURLToPath(new URL('./src/lib', import.meta.url)), + }, + }, + server: { + port: 5173, + proxy: { + // Forward the game WebSocket to the Dart server in development. + '/ws': { + target: 'ws://localhost:4567', + ws: true, + }, + }, + }, + test: { + include: ['test/**/*.test.ts'], + }, +}); |
