diff --git a/electron.vite.config.js b/electron.vite.config.js index 042cba00..35dd5503 100644 --- a/electron.vite.config.js +++ b/electron.vite.config.js @@ -1,5 +1,4 @@ -import { join } from 'path' -const path = require('path') +import { resolve } from 'path' export default { main: { @@ -28,7 +27,7 @@ export default { build: { emptyOutDir: false, rollupOptions: { - input: path.resolve(__dirname, 'src/index.html'), + input: resolve(__dirname, 'src/index.html'), }, outDir: '.vite/build', minify: true,