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://extensionsoredge://extensions)
-
Then click on
Load unpacked -
Select
distfolder inside this repo folder(It will get generated after running eitherbuildorstartcommand) -
If you have run
startcommand, you can see something like this in browser console
- Extension is working for
ChromeandEdge. - Content Scripts
- Popup
- Service Worker (Background script)
- Webpack Hot reload
- Hot reload isn't working for content script in Manifest v3