Horje
git-revision-webpack-plugin Code Example
git-revision-webpack-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
membuat nomor urut 11 digit berdasarkan id primary key Code Example membuat nomor urut 11 digit berdasarkan id primary key Code Example
see all drives linuix Code Example see all drives linuix Code Example
ubuntu install latest vim Code Example ubuntu install latest vim Code Example
change directory from c to d Code Example change directory from c to d Code Example
Drive Cleaner "windows was unable to complete the formatting", windows cant format usb drive Code Example Drive Cleaner "windows was unable to complete the formatting", windows cant format usb drive Code Example

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