Skip to content

Commit 108a9a1

Browse files
committed
fix: electron build
1 parent 6d066bb commit 108a9a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chat2db-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/chat2db/Chat2DB"
88
},
99
"author": "fjy, hexi",
10-
"main": "src/main/dist/index.js",
10+
"main": "src/main/main.js",
1111
"scripts": {
1212
"build": "npm run build:web && npm run build:main",
1313
"build:desktop": "npm run build:web:desktop && npm run build:main:prod",

chat2db-client/src/main/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const path = require('path');
33
module.exports = {
44
entry: './index.js',
55
output: {
6-
filename: 'index.js',
7-
path: path.resolve(__dirname, 'dist'),
6+
filename: 'main.js',
7+
path: path.resolve(__dirname),
88
},
99
target: 'electron-main'
1010
};

0 commit comments

Comments
 (0)