summaryrefslogtreecommitdiff
path: root/frontend/vite.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/vite.config.ts')
-rw-r--r--frontend/vite.config.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 3178f19..8c48766 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -1,11 +1,16 @@
import { defineConfig } from 'vitest/config';
import { svelte } from '@sveltejs/vite-plugin-svelte';
+import tailwindcss from '@tailwindcss/vite';
+import path from 'node:path';
export default defineConfig({
- plugins: [svelte()],
+ plugins: [svelte(), tailwindcss()],
// resolve svelte's browser (client) build so tests can actually mount
// components; production client bundles already resolve the same entry
- resolve: { conditions: ['browser'] },
+ resolve: {
+ conditions: ['browser'],
+ alias: { $lib: path.resolve(process.cwd(), 'src/lib') }
+ },
build: { target: 'es2020' },
test: {
environment: 'jsdom',
@@ -16,7 +21,7 @@ export default defineConfig({
// let vitest resolve the browser (client) build of svelte so component
// mounting is possible in jsdom regression tests
resolve: { conditions: ['browser'] }
- },
+ } as never,
server: {
proxy: {
'/api': {