0.1.1 • Published 6 years ago
poi-preset-web-ext v0.1.1
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')()
]
}
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.