feat/ VSCode : add Debugging config for man process (#465) + Karma
This commit is contained in:
9
main.ts
9
main.ts
@@ -24,10 +24,15 @@ function createWindow(): BrowserWindow {
|
||||
});
|
||||
|
||||
if (serve) {
|
||||
|
||||
require('devtron').install();
|
||||
win.webContents.openDevTools();
|
||||
|
||||
require('electron-reload')(__dirname, {
|
||||
electron: require(`${__dirname}/node_modules/electron`)
|
||||
});
|
||||
win.loadURL('http://localhost:4200');
|
||||
|
||||
} else {
|
||||
win.loadURL(url.format({
|
||||
pathname: path.join(__dirname, 'dist/index.html'),
|
||||
@@ -36,10 +41,6 @@ function createWindow(): BrowserWindow {
|
||||
}));
|
||||
}
|
||||
|
||||
if (serve) {
|
||||
win.webContents.openDevTools();
|
||||
}
|
||||
|
||||
// Emitted when the window is closed.
|
||||
win.on('closed', () => {
|
||||
// Dereference the window object, usually you would store window
|
||||
|
||||
Reference in New Issue
Block a user