Skip to content

Commit 02f3c0e

Browse files
committed
added in dev tools code to boilerplate
1 parent 900ad30 commit 02f3c0e

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src-electron/main-process/electron-main.dev.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
require('electron-debug')({ showDevTools: true })
1212

1313
// Install `vue-devtools`
14-
require('electron').app.on('ready', () => {
15-
let installExtension = require('electron-devtools-installer')
16-
installExtension.default(installExtension.VUEJS_DEVTOOLS)
17-
.then(() => {})
18-
.catch(err => {
19-
console.log('Unable to install `vue-devtools`: \n', err)
20-
})
21-
})
14+
// require('electron').app.on('ready', () => {
15+
// let installExtension = require('electron-devtools-installer')
16+
// installExtension.default(installExtension.VUEJS_DEVTOOLS)
17+
// .then(() => {})
18+
// .catch(err => {
19+
// console.log('Unable to install `vue-devtools`: \n', err)
20+
// })
21+
// })
2222

2323
// Require `main` process to boot app
2424
require('./electron-main')

src/index.template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"
2121
crossorigin="anonymous"
2222
/>
23+
24+
<!-- below script to allow vue devtools to connect to our electron dev app - https://devtools.vuejs.org/-->
25+
<script src="http://localhost:8098"></script>
26+
2327
</head>
2428
<body>
2529
<!-- DO NOT touch the following DIV -->

0 commit comments

Comments
 (0)