0.1.1 • Published 6 years ago

poi-preset-web-ext v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

poi-preset-web-ext

Install

yarn add poi-preset-web-ext --dev

Usage

module.exports = {
  presets: [
    require('poi-preset-web-ext')()
  ],
  // To use with React:
  // The order matters!
  presets: [
    require('poi-preset-react')(),
    require('poi-preset-web-ext')()
  ]
}

See a complete example

manifest.json generation

Suffix poi dev/build command with --manifest to generate extension manifest.json file:

poi --manifest
poi build --manifest

By default the preset will look for existing manifest.json file to copy to dist path in src

Options

popupTemplate

Type: string Default: ./lib/popup.html

Path to the HTML template for generated popup.html.

backgroundTemplate

Type: string Default: ./lib/background.html

Path to the HTML template for generated background.html.

manifestPath

Type: string Default: ./lib/manifest.json

Path to default manifest.json file that is copied to dist if one is not found in src directory.

pluginOptions

Type: object Default: {}

Options for webpack-chrome-extension-reloader.

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago