From 108a9a1f1b64cf3e899b0a4e171fa0a5185c5c43 Mon Sep 17 00:00:00 2001 From: shanhexi Date: Mon, 8 Jan 2024 15:17:40 +0800 Subject: [PATCH] fix: electron build --- chat2db-client/package.json | 2 +- chat2db-client/src/main/webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chat2db-client/package.json b/chat2db-client/package.json index 2813bca64..861eff341 100644 --- a/chat2db-client/package.json +++ b/chat2db-client/package.json @@ -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", diff --git a/chat2db-client/src/main/webpack.config.js b/chat2db-client/src/main/webpack.config.js index 3453532c7..28e0dc227 100644 --- a/chat2db-client/src/main/webpack.config.js +++ b/chat2db-client/src/main/webpack.config.js @@ -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' };