for main and preload, compilation is not happening, hep ! #706
Answered
by
alex8088
mohammadazeemwani
asked this question in
Q&A
-
I am using electron -vite and my compilation is not woking for the main and preload process. i know that default build>out is this but still no luck. ~ here is my import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin, swcPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin(), swcPlugin()],
build: {
outDir: 'out/main/'
}
},
preload: {
plugins: [externalizeDepsPlugin(), swcPlugin()],
build: {
outDir: 'out/preload/'
}
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src'),
}
},
server: {
port: 3000,
host: true
},
plugins: [react()]
}
}) |
Beta Was this translation helpful? Give feedback.
Answered by
alex8088
Feb 5, 2025
Replies: 1 comment 1 reply
Answer selected by
mohammadazeemwani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://electron-vite.org/guide/hot-reloading