@@ -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();
|
||||
|
||||
@@ -81,9 +81,8 @@
|
||||
"build:usb": "electron-rebuild -w usb -p",
|
||||
"build:test": "webpack --config \"test-serializer/webpack.config.js\"",
|
||||
"server:web": "webpack-dev-server --config \"web/src/webpack.config.js\" --content-base \"./web/dist\"",
|
||||
"server:electron": "webpack-dev-server --config \"electron/src/webpack.config.js\" --content-base \"./electron/dist\" --port 8081",
|
||||
"electron:dev": "electron electron/dist/electron-main.js --url=http://localhost:8081",
|
||||
"electron:prod": "electron electron/dist/electron-main.js",
|
||||
"server:electron": "webpack --config \"electron/src/webpack.config.js\" --watch",
|
||||
"electron": "electron electron/dist/electron-main.js",
|
||||
"symlink": "node ./tools/symlinker"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user