1.0.0 • Published 4 years ago

html-webpack-git-revision-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

html-webpack-git-revision-plugin

npm

Webpack plugin that generates the latest git commit hash within html meta tag, which is very useful when you want to check if the deployment meets expectations. It requires html-webpack-plugin.

Installation

npm install html-webpack-git-revision-plugin --save-dev

Usage

const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackGitRevisionPlugin = require('html-webpack-git-revision-plugin');

module.exports = {
  plugins: [
    new HtmlPlugin(),
    new HtmlWebpackGitRevisionPlugin()
  ]
}

Output:

<html>
    <head>
        <meta name="git-revision" content="0dc85118e7a1139d5dab943b7eee529c7be06d9c">
    </head>
</html>

FAQ

1.0.0

4 years ago