0.1.1 • Published 10 months ago

rollup-plugin-crx v0.1.1

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
-
Last release
10 months ago

rollup-plugin-crx

Generate CRX archives with Rollup/Vite!

Usage

Place your manifest.json and other non-bundled assets in public/, then add the following to your Rollup plugins config:

import crx from "rollup-plugin-crx"
import fs from "node:fs";

[...]

plugins: [
	crx({
		privateKey: fs.readFileSync('./key.pem'), 
		fileName: "index.crx"
	})
],

[...]

Vite

This plugin works excellently with Vite, archiving together both the bundled JavaScript, index.html, and assets from public/.

0.1.1

10 months ago

0.1.0

10 months ago