servicepoint-tanks/tank-frontend/vite.config.ts

16 lines
390 B
TypeScript
Raw Normal View History

2024-04-21 21:37:38 +02:00
import {defineConfig} from 'vite';
2024-04-07 17:17:11 +02:00
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
2024-04-10 22:03:36 +02:00
export default defineConfig(() => {
const isContainer = process.env.CONTAINERMODE;
return {
plugins: [react()],
2024-04-07 17:17:11 +02:00
2024-04-10 22:03:36 +02:00
build: {
2024-04-21 14:34:45 +02:00
outDir: isContainer ? undefined : '../tanks-backend/TanksServer/client',
2024-04-10 22:03:36 +02:00
emptyOutDir: true
}
};
2024-04-07 17:17:11 +02:00
});