Important
vite-plugin-web-extension will soon be deprecated in favor of WXT, it's successor. While WXT is still in pre-release, it already supports everything this plugin does, is significantly more popular, and includes more features and bug fixes that aren't (and won't) be added to vite-plugin-web-extension.
If you're starting a new project, I'd recommend you use WXT instead. Once WXT v1.0 is released, I'll provide a more in-depth migration guide for existing projects and vite-plugin-web-extension will enter maintainence mode.
Build Status NPM Version NPM Downloads Vite Version
To get started quickly, bootstrap a new project!
npm create vite-plugin-web-extension pnpm create vite-plugin-web-extension yarn create vite-plugin-web-extension bun create vite-plugin-web-extension
- π§ Automatically build inputs listed in your
manifest.json - π Open a browser and install the extension during development
- β‘ Super fast dev mode
- π Supports all browsers
- π₯ Full frontend framework support (popup, options, and content scripts)
- π€ Typescript support out of the box!
- β Manifest validation
To get started, checkout the docs:
https://vite-plugin-web-extension.aklinker1.io
Special thanks to the contributors!
See the contributing docs to setup the project for development.