Base on electron-devtools-installer, add offline extensions folder install support.
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.
$ npm install electron-devtools-installer-offline --save-dev
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';
installExtension(chromeStoreID, forceDownload=false)
Install DevTool extensions into Electron.
chromeStoreID
is ChromeStore ID of the extensionforceDownload
set true will ignore the offline extensions files.