Scaffolding for a Chrome extension built with Preact.
Run npm i
to install dependencies.
Run npm run build
. The bundle will end up in dist/
.
- Open the Extension Management page by navigating to
chrome://extensions
. - Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the LOAD UNPACKED button and select the
dist/
directory.
The base app component is in src/app/app.jsx
.
Chrome extensions can be composed of many parts. This scaffolding allows you to build the popup UI with Preact.