Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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()),
    }),
  ],
}
Comment

PREVIOUS NEXT
Code Example
Shell :: Add the GitLab package repository 
Shell :: get numebr of columns terminal 
Shell :: elevate current commandprompt 
Shell :: stern watch service logs 
Shell :: slow scaninng 
Shell :: how to remote connect to computer with no password 
Shell :: inspect changes after git fetch 
Shell :: gitlab specific version 
Shell :: check if lfs compatible 
Shell :: set default permission to user for git use 
Shell :: log httpd cmd 
Shell :: chrome saved cache gif 
Shell :: how to install multiple linux package in one line 
Shell :: bloquear /var/lib/apt/lists 
Shell :: pipe list to rm ubuntu 
Shell :: run camunda in linux mint 
Shell :: piping results as argument linux 
Shell :: how to apply a diff file to my branch 
Shell :: git branch erstellen 
Shell :: packet forwarding linux echo 1 
Shell :: imstall prettier 
Shell :: how to rename file sequential in ubuntu 
Shell :: how to analyse a git repo 
Shell :: git remote add ssh url 
Shell :: rsync exclude symlinks 
Shell :: helm set image 
Shell :: Two methods can be used to bring interfaces up ip link set dev eth0 down or down 
Shell :: how to clone databases on mongodb atlas 
Shell :: command line filters 
Shell :: change git to github 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =