This is a template for building a Chrome Extension using React.js and Manifest V3.
- React 17: For building the user interface.
- Manifest V3: The latest and most secure version of the Chrome Extension platform.
- Rollup: Bundles all your files for production and development.
- Live Reloading:
npm run build:watchautomatically rebuilds the extension on file changes.
git clone https://github.com/amalej/chrome-extension-mv3-react-template.git
cd https://github.com/amalej/chrome-extension-mv3-react-template.gitnpm installnpm run build
- Builds a development version of the extension into the
dist/directory.
npm run build:watch
- Builds a development version and rebuilds automatically whenever you change a file.
npm run release
- Builds an optimized production version of the extension, ready for publishing.
- Run
npm run buildornpm run build:watch. - Open Google Chrome and navigate to
chrome://extensions. - Enable "Developer mode" in the top right corner.
- Click on "Load unpacked".
- Select the
buildfolder generated in your project directory.