1.0.8 • Published 1 year ago
chrome-extension-manifest-webpack-plugin v1.0.8
chrome-extension-manifest-webpack-plugin
Webpack plugin which allows you to modify your extension manifest
Usage:
const ChromeExtensionManifest = require('chrome-extension-manifest-webpack-plugin');
new ChromeExtensionManifest({
inputFile: '../path/to/manifest.json',
outputFile: '../path/to/manifest.json',
replace: [{
pattern: /__FOO__/g,
value: args.foo
}],
props: {
version: getVersion(args.version)
}
})
Options:
inputFile: Existing manifest file.
outputFile: Newly created manifest file
replace: Array of objects with the follwing keys:\ pattern: pattern to search for\ value: value to be replaced with
- options: An object containing optional flags
- allowEmpty: Allow defining an empty replacement value, default: false.
- props: add new or overwrite manifest entries