mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +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')
|