You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
776 B
TypeScript

import { defineConfig } from 'vite';
import solid from 'vite-plugin-solid';
import tailwindcss from '@tailwindcss/vite';
import path from 'path';
export default defineConfig({
plugins: [
solid(),
tailwindcss(),
],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
build: {
target: 'esnext',
outDir: 'dist',
},
resolve: {
alias: {
'~': path.resolve(__dirname, './src'),
},
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/__tests__/setup.ts'],
transformMode: {
web: [/\.[jt]sx?$/],
},
deps: {
optimizer: {
web: {
include: [],
},
},
},
},
});