/vite-plugin-web-extension

Vite plugin for developing Chrome/Browser Extensions

Primary LanguageTypeScriptMIT LicenseMIT

Vite Plugin Web Extension

A simple but powerful Vite plugin for developing browser extensions

// vite.config.ts
import webExtension from "vite-plugin-web-extension";

export default defineConfig({
  plugins: [
    webExtension({
      manifest: "manifest.json",
      assets: "assets",
    }),
  ],
});

Features

  • 🔧 Automatically build inputs from in your manifest.json
  • 🎉 Automatically open a browser and install the extension during development
  • ⚡ Super fast dev mode that automatically reloads your extension
  • 🌐 Supports all browsers
  • 🔥 Frontend frameworks for the popup, options page, and content scripts!
  • 🤖 Typescript support out of the box!
  • ✅ Manifest validation

Documentation

To get started or learn more, checkout the docs:

https://vite-plugin-web-extension.aklinker1.io

Contributing

Special thanks to the contributors!

See the contributing docs to setup the project for development.