chrome-extension-boilerplate-react
chrome-extension-boilerplate-react copied to clipboard
Please consider introducing react fast refresh
This boilerplate is great. Thanks for the work.
Please consider introducing react fast refresh. React Fast Refresh will speed up the react development.
I second this. Would it be difficult to do this? I'm asking as I'd like to try and implement it myself.
@XuNeal and whoever else is interested. I was able to add React Fast Refresh. I followed the Prerequisites, Installation, and Usage sections of the readme.
Then I removed the use of alias
from webpack.config.js
and add react-refresh/babel
to .babelrc
.
Here's a gist of the changes I made.
When I ran the local server I got the following screen and was able to navigate to the newtab, options, panel, and popup pages.
Additional changes:
hot: true,
liveReload: false
utils/webserver.js
to make it work.
I created a repo by create-react-app, so you can enjoy it. cra-crx-boilerplate
Done!