1.0.8 • Published 1 year ago

chrome-extension-manifest-webpack-plugin v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

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
1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

3 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago