0.8.0 • Published 3 years ago

webpack-extension-manifest-plugin v0.8.0

Weekly downloads
1,264
License
MIT
Repository
github
Last release
3 years ago

webpack-extension-manifest-plugin

Creates manifest json file based on you config

Travis Build StatusAppVeyor Build Statusnodenpm versionDependency StatusXO code styleCoveralls status

npm downloadsnpm

Why ?

Simplifies the development of cross-platform browser extension

  • Firefox
  • Chrome
  • EDGE
  • Safari

Install

npm i -D webpack-extension-manifest-plugin

Note: This project is compatible with node v10+

Usage

baseManifest.js

export default {
  name: 'my manifest'
};

webpack.config.js

import WebpackExtensionManifestPlugin from 'webpack-extension-manifest-plugin';

module.exports = {
  plugins: [
    new WebpackExtensionManifestPlugin({
      config: {
        base: './baseManifest.js',
        extend: {description: 'my description'}
      },
      pkgJsonProps: [
        'version'
      ]
    })
  ]
};

Create manifest.json with extend configs {name: 'my manifest', description: 'my description', version: '0.0.0'}

Options

config

Type: Object
Default: {}
Description: Can take a ready-made configuration or filename (to fetch from) for the manifest file, or a set of parameters base, extend (both of which can be a filename or an object)

minify

Type: Boolean
Default: false
Description: Controls if the output should be minified

pkgJsonProps

Type: Array of strings
Description: Adds specified properties from your package.json file into the manifest

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

5 years ago

0.4.3

5 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago