mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
19 lines
531 B
JavaScript
19 lines
531 B
JavaScript
// Set environment for development
|
|
process.env.NODE_ENV = 'development'
|
|
|
|
// Install `electron-debug` with `devtron`
|
|
require('electron-debug')({ showDevTools: true })
|
|
|
|
// Install `vue-devtools`
|
|
require('electron').app.on('ready', () => {
|
|
let installExtension = require('electron-devtools-installer')
|
|
installExtension.default(installExtension.VUEJS_DEVTOOLS)
|
|
.then(() => {})
|
|
.catch(err => {
|
|
console.log('Unable to install `vue-devtools`: \n', err)
|
|
})
|
|
})
|
|
|
|
// Require `main` process to boot app
|
|
require('./main')
|