Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-revision-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-revision-webpack-plugin - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "git-revision-webpack-plugin",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simple webpack plugin that generates VERSION and COMMITHASH files during build",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,2 +0,2 @@

# Git Revision Webpack Plugin
# Git revision webpack plugin

@@ -9,7 +9,7 @@ [![Build Status](https://travis-ci.org/pirelenito/git-revision-webpack-plugin.svg)](https://travis-ci.org/pirelenito/git-revision-webpack-plugin)

Simple [webpack](http://webpack.github.io/) plugin that generates `VERSION` and `COMMITHASH` files during build based on a local [git](http://www.git-scm.com/) repository.
Simple [webpack](https://webpack.js.org/) plugin that generates `VERSION` and `COMMITHASH` files during build based on a local [git](http://www.git-scm.com/) repository.
## Usage
Given a webpack project, install it as a local development dependency:
Given a **webpack 4** project ([check bellow](#outdated-webpack) for **old webpack versions**), install it as a local development dependency:

@@ -52,3 +52,3 @@ ```bash

It is also possible to use [path substituitions](http://webpack.github.io/docs/configuration.html#output-filename) on build to get the revision, version or branch as part of output paths.
It is also possible to use [path substituitions](https://webpack.js.org/configuration/output/#output-filename) on build to get the revision, version or branch as part of output paths.

@@ -74,3 +74,3 @@ - `[git-revision-version]`

Example using the [DefinePlugin](http://webpack.github.io/docs/list-of-plugins.html#defineplugin):
Example using the [DefinePlugin](https://webpack.js.org/plugins/define-plugin/#usage):

@@ -174,1 +174,11 @@ ```javascript

```
## Outdated webpack
If your project is **not using Wepack version 4 or greater**, you will need to install an older version of this package:
```
npm install git-revision-webpack-plugin@2.5.1
```
Check [issue 29](https://github.com/pirelenito/git-revision-webpack-plugin/issues/29) for more information.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc