JSPM

  • Created
  • Published
  • Downloads 1507
  • Score
    100M100P100Q113041F
  • License MIT

Build Chrome Extensions with this composed Rollup plugin.

Package Exports

  • rollup-plugin-chrome-extension

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-chrome-extension) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rollup-plugin-chrome-extension

Build Chrome Extensions easily, with minimal Rollup configuration.

Use manifest.json as the input. Every file in the manifest will become an entry point or asset. It parses html files to retrieve both script tags and style sheets.

Installation

npm i rollup-plugin-chrome-extension -D

Usage

import { rollup } from 'rollup'
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'

import chromeExtension from 'rollup-plugin-chrome-extension'

import pkg from './package.json'

export default {
  input: 'src/manifest.json',
  output: {
    dir: 'build',
    format: 'esm'
  },
  plugins: [chromeExtension({ pkg }), resolve(), commonjs()]
}