1.0.2 • Published 5 years ago

@bndynet/version-auto-update-webpack-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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
        })
    ],
}