Build Chrome Extensions with this Vite plugin.
npm install @crxjs/vite-plugin
Modern Chrome extension development with built-in HMR and zero-config setup
shell
npm create crxjs@latest
` > [!IMPORTANT]
>
@latest MUST NOT be omitted, otherwise npm may resolve to a cached and outdated version of the package.✨ Features
- 🧩 Full Vite Plugin Ecosystem - Leverage any Vite-compatible plugins with zero extra setup
- ⚙️ Zero Configuration - Start developing immediately with intelligent defaults
- 3️⃣ Manifest V3 Support - Built for modern Chrome extensions with enhanced security
- 🔥 True Hot Module Replacement - Instant UI updates while preserving extension state 🎈works with content scripts
- 📁 Static Asset Import - Directly reference images/fonts in your code
- 🤖 Auto Web-Accessible Resources - Automatic generation of
web_accessible_resources manifest entries rollup-plugin` This project exists thanks to all the people who contribute.
And thank you to all our backers! 🙏
If these plugins have helped you ship your product faster, please consider
sponsoring me on GitHub.