chore(desktop): add build configuration and output files
- 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
This commit is contained in:
26
electron.vite.config.ts
Normal file
26
electron.vite.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user