Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nilooy/preact-cross-browser-webext

Template for developing cross browser extension with preact and vite
https://github.com/nilooy/preact-cross-browser-webext

Last synced: 17 days ago
JSON representation

Template for developing cross browser extension with preact and vite

Awesome Lists containing this project

README

        


Meteor Devtool Evolved Gif

Preact Cross Browser Web extension


> Firefox support HMR in development but chrome has auto-reload(hmr is blocked for content security policy)

### Tools
1. 🎨 Preact
2. 🎨 Tailwind
3. 🎨 Web-ext
4. 🎨 Web-ext polyfill (Cross browser api)
5. 🎨 release-it

### src/manifest.ts > will generate manifest v2 for firefox and v3 for chrome, add your necessary configs there in manifest.ts file.

### Install
```sh
yarn
```

### Start

```sh
yarn dev:firefox
```
OR
```sh
yarn dev:chrome
```

### Build all for prod
```sh
yarn prod
```

### Release
```sh
release
```

check package.json for more commands