chrome-ext-svelte Svelte Themes

Chrome Ext Svelte

Chrome Extension - QRCode by Svelte + Vite + TS

Chrome Extension - QRCode

License

MIT License: https://mit-license.org

Reference

NOTICE: SPA by SvelteKit is not supportted now.

Create Project

pnpm create vite # svelte, ts
cd chrome-ext-svelte
pnpm i
pnpm i -D qrcode @types/qrcode @types/chrome

Deploy Project

#!/bin/sh

basedir=~/Documents/chrome-exts
ext_dir=${basedir}/qrcode

rm -rf ${ext_dir} \
    && cp -pr dist ${ext_dir} \
    && cp -p manifest.json ${ext_dir}
{
    ...
    "build": "vite build && . deploy.sh",
    ...
}

Top categories

Loading Svelte Themes