Skip to content

Commit

Permalink
fix: fix minify size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Dec 19, 2024
1 parent ae3a289 commit 458fe54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions electron.vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export default defineConfig({
main: defineViteConfig(({ mode }) => {
const commonConfig: UserConfig = {
plugins: [
swcPlugin(),
pluginLoader('backend'),
viteResolve({
'virtual:i18n': i18nImporter(),
'virtual:plugins': pluginVirtualModuleGenerator('main'),
}),
swcPlugin(),
],
publicDir: 'assets',
build: {
Expand Down Expand Up @@ -74,12 +74,12 @@ export default defineConfig({
preload: defineViteConfig(({ mode }) => {
const commonConfig: UserConfig = {
plugins: [
swcPlugin(),
pluginLoader('preload'),
viteResolve({
'virtual:i18n': i18nImporter(),
'virtual:plugins': pluginVirtualModuleGenerator('preload'),
}),
swcPlugin(),
],
build: {
lib: {
Expand Down Expand Up @@ -123,13 +123,13 @@ export default defineConfig({
renderer: defineViteConfig(({ mode }) => {
const commonConfig: UserConfig = {
plugins: [
swcPlugin(),
pluginLoader('renderer'),
viteResolve({
'virtual:i18n': i18nImporter(),
'virtual:plugins': pluginVirtualModuleGenerator('renderer'),
}),
solidPlugin(),
swcPlugin(),
],
root: './src/',
build: {
Expand Down

0 comments on commit 458fe54

Please sign in to comment.