kaze-k / crx-pack-webpack-plugin

A webpack5 plugin to pack crx

Home Page:https://www.npmjs.com/package/crx-pack-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crx-pack-webpack-plugin

A webpack5 plugin to pack crx, use crx3 and support typescript.

Usage

add the plugin:

yarn add crx-pack-webpack-plugin -D

configure the plugin:

new CrxPackWebpackPlugin({
  zip: true,
  xml: true,
  keyFile: "your-private-key.pem",
  contentPath: "./build",
  outputPath: "./release",
  updateURL: "http://localhost:8080",
  updateFilename: "update.xml",
  name: "example-name",
  autoClean: true,
})

Configuration Settings

Option Required Type Default About
zip no boolean true provides a zip of the build files along with the CRX.
xml no boolean true provides a xml of the build files along with the CRX.
keyFile yes string none a private key required to update the extension.
contenPath yes string none location of build files.
outputPath yes string none where to export the built extension.
updateURL no string "http://localhost:8000/" where to find updates.xml
updateFilename no string "update.xml" filename for update.xml
name no string "package" the name of the built extension.
autoClean no boolean false whether to automatically empty files

Alternatives

Thank them for their inspiration

About

A webpack5 plugin to pack crx

https://www.npmjs.com/package/crx-pack-webpack-plugin

License:MIT License


Languages

Language:TypeScript 100.0%