Socket
Socket
Sign inDemoInstall

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.3 to 3.0.4

6

lib/build-file.js

@@ -16,4 +16,6 @@ var runGitCommand = require('./helpers/run-git-command')

compilation.mainTemplate.hooks.assetPath.tap('asset-path', (path) => {
return path.replace(replacePattern, data)
compilation.mainTemplate.hooks.assetPath.tap('asset-path', (assetPath, chunkData) => {
return (typeof assetPath === 'function'
? assetPath(chunkData)
: assetPath).replace(replacePattern, data)
})

@@ -20,0 +22,0 @@ })

{
"name": "git-revision-webpack-plugin",
"version": "3.0.3",
"version": "3.0.4",
"description": "Simple webpack plugin that generates VERSION and COMMITHASH files during build",

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

@@ -75,7 +75,10 @@ # Git revision webpack plugin

```javascript
var gitRevisionPlugin = new GitRevisionPlugin()
const webpack = require('webpack')
const GitRevisionPlugin = require('git-revision-webpack-plugin')
const gitRevisionPlugin = new GitRevisionPlugin()
module.exports = {
plugins: [
new DefinePlugin({
gitRevisionPlugin,
new webpack.DefinePlugin({
'VERSION': JSON.stringify(gitRevisionPlugin.version()),

@@ -82,0 +85,0 @@ 'COMMITHASH': JSON.stringify(gitRevisionPlugin.commithash()),

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