Skip to content
On this page

Building for Production


Like with a regular Vite project, just run the build command:

vite build

Then look in your dist/ directory. You should find a fully functioning browser extension! You can load it into Chrome or Firefox as an unpacked extension.


To publish your extension to the store, you simply need to zip up the files inside your output directory. You can do this manually, or use a package like zip-a-folder to automate it.

import { zip } from "zip-a-folder";

await zip("dist", "");

Released under the MIT License.