This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
servicepoint-tanks/tank-frontend/vite.config.ts
2024-04-10 22:03:36 +02:00

15 lines
387 B
TypeScript

import {ConfigEnv, defineConfig} from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig(() => {
const isContainer = process.env.CONTAINERMODE;
return {
plugins: [react()],
build: {
outDir: isContainer ? undefined : '../TanksServer/client',
emptyOutDir: true
}
};
});