🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

rollup-plugin-webext-manifest

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-webext-manifest

Generates rollup bundles from Web Extension manifests.

latest
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

rollup-plugin-webext-manifest

Theoretically a Rollup plugin for processing web extension manifest files.

Installation

# With Yarn
yarn add --dev rollup-plugin-webext-manifest
# With npm
npm install --save-dev rollup-plutin-webext-manifest

Usage

Add a configuration object to your rollup.config.js that takes your manifest.json as its only input. Include this module as the first plugin in your configuration. Set targetPlatform to one of chrome (Chrome) or gecko (Firefox). Minimal example:

// rollup.config.js
import processManifest from 'rollup-plugin-webext-manifest';
export default [
  {
    input: 'manifest.json',
    plugins: [
      processManifest({
        targetPlatform: 'gecko',
      }),
    ],
    output: {
      dir: 'build',
    },
  },
];

TODO: document other options

FAQs

Package last updated on 26 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts