@crx-template/chrome-extension-svelte-ts v0.0.0
Chrome Extension Vite Svelte Boilerplate
A chrome extension boilerplate built with Svelte 3, Vite 2
Features
This boilerplate is updated with:
Installing and Running
Procedures
- Check if your Node.js version is >= 14.
- Clone this repository.
- Change the package's
your name,description, andrepositoryfields inpackage.json. - Change the name of your extension on
manifest.ts. - Run
pnpm installto install the dependencies. - Run
pnpm build
Structure
All your extension's code must be placed in the src folder.
The boilerplate is already prepared to have a popup, an options page, a background page, and a new tab page (which replaces the new tab page of your browser). But feel free to customize these.
TypeScript
This boilerplate now supports TypeScript! The Options Page is implemented using TypeScript. Please refer to src/options/ for example usages.
Packing
After the development of your extension run the command
$ pnpm buildNow, the content of build folder will be the extension ready to be submitted to the Chrome Web Store. Just take a look at the official guide to more infos about publishing.
Power by create-chrome-ext | Github
3 years ago