Similar to this although it only shows how to download the developer tools in one instance. I want to load this in every time I start the app in development
. I am using webpack.
I get the error that manifest.json is not open.
with
const addDevTools = () => {
if (mainWindow) {
// Open the DevTools.
mainWindow.webContents.openDevTools();
require("devtron").install();
require("electron-debug")();
const installer = require("electron-devtools-installer");
const extensions = [
"REACT_DEVELOPER_TOOLS",
"REDUX_DEVTOOLS",
];
for (const name of extensions) {
installer.default(installer[name], true)
.then((n: any) => console.log(`Added Extension: ${n}`))
.catch((err: any) => console.log(`An error occurred: ${err}`));
}
}
};