mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 07:28:42 +08:00
🐛 Fix(custom): fix static assets bugs
This commit is contained in:
@@ -7,7 +7,6 @@ import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
||||
export default defineConfig({
|
||||
main: {
|
||||
// Main process configuration
|
||||
plugins: [
|
||||
externalizeDepsPlugin()
|
||||
],
|
||||
@@ -23,7 +22,6 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
preload: {
|
||||
// Preload scripts configuration
|
||||
plugins: [externalizeDepsPlugin(),
|
||||
VueI18nPlugin({
|
||||
/* options */
|
||||
@@ -41,12 +39,8 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
renderer: {
|
||||
// Renderer process configuration
|
||||
root: resolve('src/renderer'),
|
||||
publicDir: resolve('./public'),
|
||||
build: {
|
||||
outDir: resolve('dist/renderer')
|
||||
},
|
||||
base: './',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve('src/renderer'),
|
||||
|
||||
Reference in New Issue
Block a user