Skip to content

Commit

Permalink
Merge pull request #1075 from chat2db/refactor-electron
Browse files Browse the repository at this point in the history
fix: electron build
  • Loading branch information
shanhexi committed Jan 8, 2024
2 parents c7dc014 + 108a9a1 commit 34c621e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chat2db-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/chat2db/Chat2DB"
},
"author": "fjy, hexi",
"main": "src/main/dist/index.js",
"main": "src/main/main.js",
"scripts": {
"build": "npm run build:web && npm run build:main",
"build:desktop": "npm run build:web:desktop && npm run build:main:prod",
Expand Down
4 changes: 2 additions & 2 deletions chat2db-client/src/main/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const path = require('path');
module.exports = {
entry: './index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
path: path.resolve(__dirname),
},
target: 'electron-main'
};

0 comments on commit 34c621e

Please sign in to comment.