0.1.4 • Published 9 years ago
electron-devtools-installer-offline v0.1.4
Electron DevTools Offline Installer
Base on electron-devtools-installer, add offline extensions folder install support.
Why
Because in somewhere can not connect ChromeStore, so add offline install support.
The extensions folder is store extensions file. When install extensions, will looking for the folder, if doesn't exits then connect ChromeStore to download.
Install
$ npm install electron-devtools-installer-offline --save-devUsage
import installExtension, {
REACT_DEVELOPER_TOOLS
} from 'electron-devtools-installer-offline';
installExtension(REACT_DEVELOPER_TOOLS);Support offline extensions, these extensions are all download already in extensions folder.
import installExtension, {
EMBER_INSPECTOR, REACT_DEVELOPER_TOOLS,
ANGULARJS_BATARANG, VUEJS_DEVTOOLS,
REDUX_DEVTOOLS,
} from 'electron-devtools-installer-offline';API
installExtension(chromeStoreID, forceDownload=false)
Install DevTool extensions into Electron.
chromeStoreIDis ChromeStore ID of the extensionforceDownloadset true will ignore the offline extensions files.