Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

PREVIOUS NEXT
Code Example
Shell :: install Postfix to send notification emails 
Shell :: Disable the built-in Redis and Fill in the connection details 
Shell :: how to upload a file to sentry 
Shell :: kubernetes get crd and their namespaces 
Shell :: heroku multiple remotes 
Shell :: ubuntu gcp packer 
Shell :: repeat characters for line vim 
Shell :: yarn add v1.9.4 warning ../../package.json: No license field error Missing list of packages to add to your project. 
Shell :: run cpp code 
Shell :: curl 2 attempts 
Shell :: powershell alternative && 
Shell :: ansible-playbook "module_stderr": "sudo: xx?" 
Shell :: where are snap files installed in ubuntu 
Shell :: linux silence stderr 
Shell :: test wifi password 
Shell :: digit qweb odoo 
Shell :: run cmd in batch 
Shell :: CentOS Extras aarch64 epel-release-8-8.el8.noarch.rpm 
Shell :: catch input bash 
Shell :: cara stop running docker 
Shell :: containing globalprotect, pre-dependency problem: globalprotect pre-depends on libqt5webkit5 libqt5webkit5 is not installed. 
Shell :: install oython on kali-rolling container 
Shell :: check if any changes are stashed 
Shell :: wsl install from tar 
Shell :: git the .git folder (to manage your local repo cloned many remote repos) 
Shell :: helm set environment variables 
Shell :: how to remove git ssh from macbook 
Shell :: startup with docker compose 
Shell :: archlinux Unable to install Yay, Paru and Endeavouros Keyring 
Shell :: Reduce the hibernate file Windows 10 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =