native aot in container
This commit is contained in:
parent
0ca6a91a7e
commit
85ae3e302c
11 changed files with 128 additions and 61 deletions
|
@ -1,12 +1,15 @@
|
|||
import {defineConfig} from 'vite';
|
||||
import {ConfigEnv, defineConfig} from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
export default defineConfig(() => {
|
||||
const isContainer = process.env.CONTAINERMODE;
|
||||
return {
|
||||
plugins: [react()],
|
||||
|
||||
build: {
|
||||
outDir: '../TanksServer/client',
|
||||
emptyOutDir: true
|
||||
}
|
||||
build: {
|
||||
outDir: isContainer ? undefined : '../TanksServer/client',
|
||||
emptyOutDir: true
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue