git-revision-webpack-plugin
Version:
[](https://badge.fury.io/js/git-revision-webpack-plugin) [](https://www.npmjs.com/package/
26 lines (25 loc) • 767 B
TypeScript
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 {};