poi-preset-web-ext

0.1.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i poi-preset-web-ext

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • edgji