Horje
git revision plugin Code Example
git revision plugin
const webpack = require('webpack')
const { GitRevisionPlugin } = require('git-revision-webpack-plugin')
const gitRevisionPlugin = new GitRevisionPlugin()

module.exports = {
  plugins: [
    gitRevisionPlugin,
    new webpack.DefinePlugin({
      VERSION: JSON.stringify(gitRevisionPlugin.version()),
      COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()),
      BRANCH: JSON.stringify(gitRevisionPlugin.branch()),
      LASTCOMMITDATETIME: JSON.stringify(gitRevisionPlugin.lastcommitdatetime()),
    }),
  ],
}
Source: github.com




Shell

Related
get ssm version Code Example get ssm version Code Example
change hostname rhel 6 Code Example change hostname rhel 6 Code Example
resume an interrupted upload/download Code Example resume an interrupted upload/download Code Example
chromeos linux reboot Code Example chromeos linux reboot Code Example
powershell disable password complexity Code Example powershell disable password complexity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11