yarn add poi-preset-web-ext --dev
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')()
]
}
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
Type: string
Default: ./lib/popup.html
Path to the HTML template for generated popup.html
.
Type: string
Default: ./lib/background.html
Path to the HTML template for generated background.html
.
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.
Type: object
Default: {}
Options for webpack-chrome-extension-reloader.