Use webpack watch mode when developing with electron

Closes #273
This commit is contained in:
József Farkas
2017-03-12 20:10:41 +01:00
parent adb7abaa12
commit 242de59540
2 changed files with 4 additions and 6 deletions

View File

@@ -21,9 +21,8 @@ function createWindow() {
const indexPath = path.resolve(__dirname, './index.html');
// and load the index.html of the app.
const url = process.argv[2] && process.argv[2].startsWith('--url=') ? process.argv[2].substring(6) : `file://${indexPath}`;
win.loadURL(url);
win.loadURL(`file://${indexPath}`);
win.on('page-title-updated', (event) => {
event.preventDefault();