mirror of https://github.com/cocosolos/ixion.git
29 lines
633 B
TypeScript
29 lines
633 B
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
/// <reference types="vitest" />
|
|
/// <reference types="vite/client" />
|
|
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
host: true, // needed for the Docker Container port mapping to work
|
|
strictPort: true,
|
|
port: 3000,
|
|
hmr: {
|
|
// port: 3010,
|
|
host: 'localhost',
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/setupTests.ts'],
|
|
},
|
|
});
|