Chrome Extension Template (Manifest v3) Webpack Hot reload
- NodeJs
v17.4.0
- Install dependencies
npm install
- Build for production
npm run build
- Start working on locally
npm run start
-
Turn on developer mode in (
chrome://extensions
oredge://extensions
) -
Then click on
Load unpacked
-
Select
dist
folder inside this repo folder(It will get generated after running eitherbuild
orstart
command) -
If you have run
start
command, you can see something like this in browser console
- Extension is working for
Chrome
andEdge
. - Content Scripts
- Popup
- Service Worker (Background script)
- Webpack Hot reload
- Hot reload isn't working for content script in Manifest v3