webpack-version-plugin
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "webpack-version-plugin", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "webpack-version-plugin", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -6,7 +6,7 @@ # webpack-version-plugin | ||
npm | ||
```javascript | ||
```bash | ||
$ npm install webpack-version-plugin --save-dev | ||
``` | ||
yarn | ||
```javascript | ||
```bash | ||
$ yarn add webpack-version-plugin --dev | ||
@@ -44,2 +44,5 @@ ``` | ||
vendor: 'ff7f0450afc7ff3030cba2428e593dcf' | ||
}, | ||
files: { | ||
app: ['js/app_fa74f310.js'] | ||
} | ||
@@ -46,0 +49,0 @@ }*/ |
@@ -11,5 +11,9 @@ function WebpackVersionPlugin(opts) { | ||
compiler.plugin('emit', function(compilation, callback) { | ||
const hashMap = { | ||
hash: compilation.fullHash, | ||
chunkHash: {} | ||
chunkHash: {}, | ||
files: {} | ||
}; | ||
@@ -19,2 +23,3 @@ | ||
hashMap.chunkHash[item.name] = item.hash; | ||
hashMap.files[item.name] = compilation.chunks[index].files; | ||
}); | ||
@@ -21,0 +26,0 @@ |
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
23
72
5092
5