- Add electron-vite configuration for main and preload processes - Add .gitignore to exclude node_modules - Add compiled output files for main and preload processes - Add TypeScript configuration for project setup - Add package-lock.json for dependency management - Initialize build artifacts for desktop application distribution
27 lines
585 B
TypeScript
27 lines
585 B
TypeScript
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/main/main.ts'),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/main/preload.ts'),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
// No renderer - desktop app loads external web frontend
|
|
});
|