UNPKG

git-revision-webpack-plugin

Version:

[![npm version](https://badge.fury.io/js/git-revision-webpack-plugin.svg)](https://badge.fury.io/js/git-revision-webpack-plugin) [![downloads](https://img.shields.io/npm/dm/git-revision-webpack-plugin.svg?style=flat-square)](https://www.npmjs.com/package/

26 lines (25 loc) 767 B
import { Compiler } from 'webpack'; interface GitRevisionPluginOptions { gitWorkTree?: string; commithashCommand?: string; versionCommand?: string; branch?: boolean; branchCommand?: string; lastCommitDateTimeCommand?: string; lightweightTags?: boolean; } export declare class GitRevisionPlugin { gitWorkTree?: string; commithashCommand: string; versionCommand: string; createBranchFile: boolean; branchCommand: string; lastCommitDateTimeCommand: string; constructor(options?: GitRevisionPluginOptions); commithash(): string | null; version(): string | null; branch(): string | null; lastcommitdatetime(): string | null; apply(compiler: Compiler): void; } export {};