webpack-update-version-plugin

1.0.3 • Public • Published

webpack-update-version-plugin

Webpack plugin to autoincrement package version. It increments the mayor by 1 each time it is executed.

Installation

npm install webpack-update-version-plugin

To use it, load it as a plugin in your webpack.config.js file:

const WebpackUpdateVersionPlugin = require('webpack-update-version-plugin');

module.exports = {
  plugins: [
	new WebpackUpdateVersionPlugin()
  ]
}

it can also be added in optimize section of webpack.config.js file:

const WebpackUpdateVersionPlugin = require('webpack-update-version-plugin');

module.exports = {
  optimization: {
	minimizer: [
	  new WebpackUpdateVersionPlugin()
	]
  }
}

Package Sidebar

Install

npm i webpack-update-version-plugin

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.41 kB

Total Files

5

Last publish

Collaborators

  • nuarbe