chrome安裝react-devtools

1、本地打開git bash
在git中輸入:
git clone https://github.com/facebook/react-devtools.git
若超時,換國內地址
git clone https://gitee.com/mirrors/react-devtools.git
2、克隆完成後在根目錄運行
npm install
3、安裝依賴完成以後切換目錄到 shells/chrome
cd shells/chrome
4、運行node build.js
當前目錄下會生成build目錄 這個build目錄下的unpacked目錄就是chrome中所需react-devtools的工具擴展程序包

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章