Skip to content

Webpack plugin for version sync between package.json and manifest.json

License

Notifications You must be signed in to change notification settings

ElForastero/webpack-manifest-version-sync-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to webpack-manifest-version-sync-plugin 👋

Version License: MIT

Webpack plugin for version sync between package.json and manifest.json.

This plugin will sync your package.json version into your manifest.json. So you don't need to manually edit manifest.json.

Use npm version to bump your package version, and this plugin will ensure that it's in sync with manifest.json.

Install

yarn add --dev webpack-manifest-version-sync-plugin

or

npm install webpack-manifest-version-sync-plugin --save-dev

Usage

const ManifestVersionSyncPlugin = require('webpack-manifest-version-sync-plugin');

{
  // Add it to your webpack.config.js
  plugins: [
    new ManifestVersionSyncPlugin({
      packagePath: 'package.json',
      manifestPath: 'manifest.json',
    }),
  ];
}

Options

Parameter Description Default value
packagePath Path to package.json. If you have your package.json in the project root, just omit this parameter. "package.json"
manifestPath Path to you manifest.json. You can omit this parameter, if your manifest.json is located in modules root. "manifest.json"

Author

👤 Eugene Dzhumak

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Webpack plugin for version sync between package.json and manifest.json

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published