@zhourengui/esbuild-extension-manifest-merge
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Esbuild Chrome Extension Manifest Merge Plugin

Support two manifest.json merge, generate a new manifest.json file in the build directory

Installation

npm install @zhourengui/esbuild-extension-manifest-merge
# or
yarn add @zhourengui/esbuild-extension-manifest-merge

Usage

import esbuild from 'esbuild';
import { chromeExtensionManifest } from '@zhourengui/esbuild-extension-manifest-merge';

await esbuild.build({
  // ...
  plugins: [
    // ...
    chromeExtensionManifest({
      defaultManifest: resolve('src/manifest.json'),
      dynamicManifest: {
        name: productName,
        key: publicKey,
        version: version,
      },
    }),
  ],
});

Readme

Keywords

Package Sidebar

Install

npm i @zhourengui/esbuild-extension-manifest-merge

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

22.4 kB

Total Files

6

Last publish

Collaborators

  • zhourengui