This project uses webpack-ext-reloader for hot reloading during development. When you run the development script, any changes to your code will automatically trigger a reload of the extension in your browser.
-
Run the development script:
yarn dev -
Load the unpacked extension from the
distdirectory into your browser. -
Make changes to your code, and the extension will automatically reload.
The webpack-ext-reloader is configured in webpack/webpack.dev.js with the following settings:
- Port: 9090
- Content Scripts: All content scripts are configured for hot reloading
- Background Script: The service worker is configured for hot reloading
- Extension Pages: The popup is configured for hot reloading
To build the extension for production:
yarn dist:rel
This will create a production build without the hot reloading functionality.