A template for developing WebExtensions with Svelte & TailwindCSS
src/ - main source
assets/ - assets for Svelte componentscomponents/ - Svelte components that can be used on all pagespages/ - directory for all extension pagesbackground/ - background scripts (additional scripts need to be added to vite.config.ts and manifest.json)content/ - scripts and components to be used for content_scriptoptions/ - options page filespopup/ - popup page filestheme/ - theme filespublic/ - static extension files
icon/ - extension icon filesmanifest.json - manifest filedist/ - built files, use this directory for loading the extension
pnpm dev
Then load the extension in browser from the dist/ directory. There is a nodemon config file for automatic building.
pnpm prod
Then pack/zip files in the dist directory.
popup.html & options.htmlmanifest.jsonpackage.jsonpublic/iconsrc/theme/tokens.css@iconify-json/mdi)