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
- Host: GitHub
- URL: https://github.com/elforastero/webpack-manifest-version-sync-plugin
- Owner: ElForastero
- License: mit
- Created: 2019-10-21T19:19:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T20:00:59.000Z (over 2 years ago)
- Last Synced: 2025-03-18T19:55:07.700Z (7 months ago)
- Topics: manifest, syn, version, webpack
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to webpack-manifest-version-sync-plugin 👋
> 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)_