git-revision-webpack-plugin
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20763
181