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

Webpack plugin for increasing version in package.json automatically

Usage no npm install needed!

<script type="module">
  import bndynetVersionAutoUpdateWebpackPlugin from 'https://cdn.skypack.dev/@bndynet/version-auto-update-webpack-plugin';
</script>

README

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