fix(monorepo/desktop): remote not working

This commit is contained in:
Elian Doran
2025-04-24 22:16:59 +03:00
parent e8095e8056
commit 7935b250d0
3 changed files with 9 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ const outputDir = join(__dirname, 'dist');
module.exports = {
output: {
path: outputDir
path: outputDir,
},
target: [ "node" ],
plugins: [
@@ -21,13 +21,12 @@ module.exports = {
generatePackageJson: true,
externalDependencies: [
"electron/main",
"@electron/remote/main",
"electron",
"@electron/remote",
"better-sqlite3"
],
assets: [
]
assets: []
}),
new CopyPlugin({
patterns: [
@@ -42,6 +41,10 @@ module.exports = {
{
from: "../server/dist/assets",
to: join(outputDir, "assets")
},
{
from: "node_modules/@electron/remote",
to: join(outputDir, "node_modules/@electron/remote")
}
]
})