fix: compiling

- only node service is module
- import module with async
- serve react app from node process
This commit is contained in:
cv
2021-05-30 12:22:59 +02:00
parent 74c5b44488
commit 95e87d6ab8
4 changed files with 104 additions and 36 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ const {
} = require('electron');
const path = require('path');
const { electron } = require('process');
const nodeapp = require('./app.js');
(async () => {
const { nodeapp } = await import('./src/app.js');
})();
require('@electron/remote/main').initialize();
// Load Icons