diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..3c0971b8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,19 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "dev", + "problemMatcher": [] + }, + { + "type": "npm", + "script": "dev-runner", + "problemMatcher": [], + "label": "npm: dev-runner", + "detail": "node _scripts/dev-runner.js" + } + ] +} diff --git a/_scripts/dev-runner.js b/_scripts/dev-runner.js index fd62145e..2581c3a1 100644 --- a/_scripts/dev-runner.js +++ b/_scripts/dev-runner.js @@ -45,7 +45,7 @@ async function restartElectron() { electronProcess = spawn(electron, [ path.join(__dirname, '../dist/main.js'), - '--enable-logging', // Enable to show logs from all electron processes + // '--enable-logging', Enable to show logs from all electron processes remoteDebugging ? '--inspect=9222' : '', remoteDebugging ? '--remote-debugging-port=9223' : '', ]) diff --git a/src/main/index.js b/src/main/index.js index 795695cb..5697df66 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -212,6 +212,7 @@ function runApp() { async function installDevTools () { try { /* eslint-disable */ + require('devtron').install() require('vue-devtools').install() /* eslint-enable */ } catch (err) {