|
@@ -3,7 +3,7 @@ import vue from '@vitejs/plugin-vue'
|
|
|
import eslint from 'vite-plugin-eslint'
|
|
import eslint from 'vite-plugin-eslint'
|
|
|
import { resolve } from 'path'
|
|
import { resolve } from 'path'
|
|
|
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
|
-import electron from 'vite-plugin-electron'
|
|
|
|
|
|
|
+import electron from 'vite-electron-plugin'
|
|
|
|
|
|
|
|
export default () => defineConfig({
|
|
export default () => defineConfig({
|
|
|
base: './',
|
|
base: './',
|
|
@@ -21,7 +21,8 @@ export default () => defineConfig({
|
|
|
symbolId: 'icon-[dir]-[name]'
|
|
symbolId: 'icon-[dir]-[name]'
|
|
|
}),
|
|
}),
|
|
|
electron({
|
|
electron({
|
|
|
- entry: 'electron/main.js'
|
|
|
|
|
|
|
+ include: ['electron'],
|
|
|
|
|
+ outDir: 'dist/electron/'
|
|
|
}),
|
|
}),
|
|
|
],
|
|
],
|
|
|
server: {
|
|
server: {
|