feat/ VSCode : add Debugging config for man process (#465) + Karma

This commit is contained in:
Maxime GRIS
2020-05-02 13:27:48 +02:00
parent 92eb8ec146
commit acc62d9bfe
5 changed files with 73 additions and 9 deletions

View File

@@ -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