mirror of
https://github.com/frappe/books.git
synced 2024-12-24 20:00:29 +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')
|