Easily Load devtools-extension for electron
Electron supports the Chrome DevTools Extension. But, it's a very bother. This module can load simply for your development environment. And, support some devtool-extensions like redux-devtools by default.
$ npm install --save-dev electron-load-devtool
const electron = require('electron')
const loadDevtool = require('electron-load-devtool')
electron.app.on('ready', () => {
const win = new electron.BrowserWindow({ width: 400, height: 400 })
win.loadURL(`file://${__dirname}/index.html`)
loadDevtool(loadDevtool.REDUX_DEVTOOLS)
win.openDevTools()
})
Type: string
Type: boolean
Only runs when in development, unless overridden by the enabled option. So no need to guard it for production.
Type: string
Default: google-chrome
If you using chromium on Linux, set chromium
.
Type: string
Default: Default
Specific Chrome Profile name.
Type: string
Default: latest
Specific devtools-extension version.
Thanks goes to these wonderful people (emoji key):
akameco 💻 📖 🚇 |
mactkg 💻 |
Jasper Poppe 💻 |
Yoshiyuki Kinjo 💻 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco