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

16 lines
387 B
TypeScript
Raw Normal View History

2024-04-10 22:03:36 +02:00
import {ConfigEnv, 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: {
outDir: isContainer ? undefined : '../TanksServer/client',
emptyOutDir: true
}
};
2024-04-07 17:17:11 +02:00
});