rollup-plugin-crx
v0.1.1
Published
Generate signed CRX archives in Rollup or Vite
Downloads
5
Readme
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/.