@zhourengui/esbuild-extension-manifest-merge
v0.0.4
Published
Support two manifest.json merge, generate a new manifest.json file in the build directory
Downloads
2
Readme
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,
},
}),
],
});