Skip to content

Commit ba4d907

Browse files
committed
devtron
1 parent 18b6d82 commit ba4d907

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

browser/main/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const ipc = electron.ipcRenderer
1212
const path = require('path')
1313
import { syncHistoryWithStore } from 'react-router-redux'
1414

15+
const PRO = process.env.NODE_ENV === 'production'
16+
if (!PRO) require('devtron').install()
17+
1518
const remote = electron.remote
1619

1720
let config = fetchConfig()

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"babel-preset-react": "^6.3.13",
6464
"babel-preset-react-hmre": "^1.0.1",
6565
"css-loader": "^0.19.0",
66+
"devtron": "^1.1.0",
6667
"electron-packager": "^6.0.0",
6768
"electron-prebuilt": "^0.36.12",
6869
"electron-release": "^2.2.0",

webpack-skeleton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var config = {
4141
'@rokt33r/sanitize-html',
4242
'markdown-it-checkbox',
4343
'season',
44+
'devtron',
4445
{
4546
react: 'var React',
4647
'react-dom': 'var ReactDOM',

0 commit comments

Comments
 (0)