From 4cd4de078ccb7947eee18fab02f02039a8e21b55 Mon Sep 17 00:00:00 2001 From: Maxwell Lasky Date: Tue, 6 Jul 2021 12:37:24 -0600 Subject: [PATCH] Fix electron crashing bug --- config/webpack.config.prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index d8a8899da..b1f13cb92 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -19,7 +19,7 @@ module.exports = { mode: 'production', bail: true, devtool: false, - target: 'electron-main', + target: 'electron-renderer', entry: ['babel-polyfill', path.join(__dirname, '..', 'app/index.js')], externals: { 'node-hid': 'require("node-hid")',