An open API service indexing awesome lists of open source software.

https://github.com/elforastero/webpack-manifest-version-sync-plugin

Webpack plugin for version sync between package.json and manifest.json
https://github.com/elforastero/webpack-manifest-version-sync-plugin

manifest syn version webpack

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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](https://docs.npmjs.com/cli/version) to bump your package version, and this plugin will ensure that it's in sync with `manifest.json`.

## Install

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

or

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

## Usage

```js
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**

- Github: [@ElForastero](https://github.com/ElForastero)

## Show your support

Give a ⭐️ if this project helped you!

---

_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_