@bndynet/version-auto-update-webpack-plugin

1.0.2 • Public • Published

version-auto-update-webpack-plugin

A webpack plugin to increase version number in package.json automatically.

Installation

npm i @bndynet/version-auto-update-webpack-plugin --save-dev

Usage

const VersionAutoUpdateWebpackPlugin = require('@bndynet/version-auto-update-webpack-plugin');

// webpack config
{
  plugins: [
    new VersionAutoUpdateWebpackPlugin()
  ]
}

Example (webpack.config.js):

const VersionAutoUpdateWebpackPlugin = require('@bndynet/version-auto-update-webpack-plugin');

module.exports = {
    // ...
    plugins: [
        new VersionAutoUpdateWebpackPlugin({
            versionType: 'major|minor|patch',   // or specified by argument like `webpack --vau.versionType minor` in your package.json
        })
    ],
}

Package Sidebar

Install

npm i @bndynet/version-auto-update-webpack-plugin

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.04 kB

Total Files

3

Last publish

Collaborators

  • bndy