Skip to content

c9s/webpack-version-bumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack plugin for build number bumping

var VersionBumper = require('webpack-version-bumper');

module.exports = {
  ...
  'plugins': [
    new VersionBumper("./src/version.js", { "target": "es6", "format": "$major.$minor.$patch.$build" })
  ],
};

Available targets are:

  • es6
  • json
  • commonjs

Then you can include the version in your entry file:

var version = require("./version");
version.majorVersion
version.minorVersion
version.buildNumber
version.toString()
version.toJson()

About

webpack plugin for automatic version bumping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published