turtle-wow-source-kinda/Dumps/Source Code/4 - Development_launcher/main/electron.vite.config.ts
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

26 lines
516 B
TypeScript

import { resolve } from 'path';
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import react from '@vitejs/plugin-react';
const alias = {
'~common': resolve('src/common'),
'~main': resolve('src/main'),
'~renderer': resolve('src/renderer'),
'~build': resolve('build')
};
export default defineConfig({
main: {
resolve: { alias },
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
resolve: { alias },
plugins: [react()]
}
});