pack: add preload example
This commit is contained in:
1 parent
4836fbeb7d
commit
f6b899ab73
3 files changed
+8
-2
No files matched your search
@@ -10,7 +10,8 @@ export default class Constants {
|
||||
static DEFAULT_WEB_PREFERENCES = {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
nodeIntegrationInWorker: true
|
||||
nodeIntegrationInWorker: true,
|
||||
preload: join(__dirname, '../preload/index.js')
|
||||
}
|
||||
|
||||
static APP_INDEX_URL_DEV = 'http://localhost:5173/index.html'
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
const main = (): void => {
|
||||
console.log('[Preload] Script loaded.')
|
||||
}
|
||||
|
||||
main()
|
||||
Reference in new issue
Block a user