mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-28 10:24:36 +00:00
26 lines
516 B
TypeScript
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()]
|
||
|
}
|
||
|
});
|