Help us understand the problem. What is going on with this article?

ElectronでDevTools拡張を使う(React, Redux)

More than 1 year has passed since last update.

Electronの開発時に拡張使いたいですよね。
electron-devetools-installerを使う方法を紹介します。
複数拡張を入れるときどうするんだとちょい迷ったので。

スクリーンショット 2019-03-17 18.12.06.png

インストール

npm install electron-devtools-installer --save-dev

起動時に拡張をインストール

メインプロセスのファイルでこれらを追加するだけ!おわり!

import installExtension, {
  REACT_DEVELOPER_TOOLS,
  REDUX_DEVTOOLS
} from "electron-devtools-installer";
...
function createWindow() {
...
    installExtension([REDUX_DEVTOOLS, REACT_DEVELOPER_TOOLS])
      .then(name => console.log(name))
      .catch(err => console.log(err));
}

参考

DevTools拡張/本家ドキュメント

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした