[英]Electron building out the app with electron-packager dev tools auto open
So I installed electron packager and have ran then command: 所以我安装了电子打包程序,然后运行了以下命令:
electron-packager . --asar
After it has built the app out I opened it and the dev tools auto open. 构建完应用程序后,我将其打开,然后自动打开开发工具。 How can I build out the app so the dev tools do not auto open? 如何构建应用程序,使开发工具无法自动打开?
I didn't realize that mainWindow.webContents.openDevTools()
was in my main.js file from the boiler code I started with. 我没有意识到mainWindow.webContents.openDevTools()
位于我最初使用的锅炉代码的main.js文件中。 I commented that out and built my app out again and that works. 我对此进行了评论,然后再次构建了我的应用程序,并且可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.