@bndynet/version-auto-update-webpack-plugin
v1.0.2
Published
Webpack plugin for increasing version in package.json automatically
Downloads
78
Maintainers
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
})
],
}