This template helps you quickly start developing Chrome extensions with Svelte, TypeScript and Vite. It includes the CRXJS Vite plugin for seamless Chrome extension development.
- Svelte with component syntax
- TypeScript support
- Vite build tool
- CRXJS Vite plugin integration
- Chrome extension manifest configuration
- Install dependencies:
npm install- Start development server:
npm run dev-
Open Chrome and navigate to
chrome://extensions/, enable "Developer mode", and load the unpacked extension from thedistdirectory. -
Build for production:
npm run buildsrc/popup/- Extension popup UIsrc/content/- Content scriptsmanifest.config.ts- Chrome extension manifest configuration
- Use
manifest.config.tsto configure your extension - The CRXJS plugin automatically handles manifest generation
- Content scripts should be placed in
src/content/ - Popup UI should be placed in
src/popup/