Files
line-of-sight/frontend/vite.config.js
T
(jenkins) bd9e92f304
Tests / frontend-test (pull_request) Has been cancelled
Tests / e2e-test (pull_request) Has been cancelled
Tests / backend-test (pull_request) Has been cancelled
Configure Playwright for headless CI and add Gitea workflow with container support
2026-03-17 00:29:39 +00:00

26 lines
480 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./src/setupTests.js'],
exclude: ['**/e2e/**', '**/node_modules/**'],
},
server: {
port: 3000,
host: '0.0.0.0',
},
build: {
outDir: 'build',
target: 'esnext',
},
optimizeDeps: {
esbuildOptions: {
target: 'esnext',
},
},
});