Skip to content

Commit 15195e8

Browse files
Merge pull request cerebral#14 from cerebral/devtoolsPublishFix
chore(devtools): launch correct path in production mode
2 parents eff5cfa + aca98ee commit 15195e8

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/overmind-devtools/backend

1 file changed

+1
-1
lines changed

packages/node_modules/overmind-devtools/backend/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function createWindow() {
2020
mainWindow.on('closed', () => app.quit())
2121

2222
if (process.env.NODE_ENV === 'production') {
23-
mainWindow.loadFile(path.resolve('dist', 'index.html'))
23+
mainWindow.loadFile(path.join(__dirname, '..', 'dist', 'index.html'))
2424
} else {
2525
mainWindow.loadURL('http://localhost:3000')
2626
mainWindow.webContents.openDevTools()

0 commit comments

Comments
 (0)