fix: emit assets when ssr is enabled
This commit is contained in:
parent
082b1331ff
commit
963f8aba51
|
@ -126,6 +126,7 @@ export function electronMainVitePlugin(options?: ElectronPluginOptions): Plugin[
|
||||||
config.build.modulePreload = false
|
config.build.modulePreload = false
|
||||||
// enable ssr build
|
// enable ssr build
|
||||||
config.build.ssr = true
|
config.build.ssr = true
|
||||||
|
config.build.ssrEmitAssets = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -269,6 +270,7 @@ export function electronPreloadVitePlugin(options?: ElectronPluginOptions): Plug
|
||||||
config.build.modulePreload = false
|
config.build.modulePreload = false
|
||||||
// enable ssr build
|
// enable ssr build
|
||||||
config.build.ssr = true
|
config.build.ssr = true
|
||||||
|
config.build.ssrEmitAssets = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue