Skip to content
Permalink
Browse files

Load react devtols in dev mode

  • Loading branch information...
vujita committed Aug 9, 2019
1 parent 885ebba commit b96664dd77f961b1c5455863e98c37a7a9aa6a48
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app.ts
@@ -21,6 +21,9 @@ function createWindow() {
// and load the index.html of the app.
console.log(`Starting in dev mode? ${isDev}`);
if (isDev) {
BrowserWindow.addDevToolsExtension(
join(__dirname, "..", "extensions", "react-dev-tools")
);
// Attempt to load window until successful
// This is cause webpack is launching during this in dev mode
const loadWin = async () => {

0 comments on commit b96664d

Please sign in to comment.
You can’t perform that action at this time.