webpack-version-plugin
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "webpack-version-plugin", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "webpack-version-plugin", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -76,2 +76,6 @@ # webpack-version-plugin | ||
## Changelog | ||
- 2021-06-01 | ||
Ignore Dynamic module. | ||
- 2018-04-16 | ||
@@ -78,0 +82,0 @@ |
function WebpackVersionPlugin(opts) { | ||
if (typeof opts.cb !== 'function') { | ||
throw new Error('You must set the cb option'); | ||
throw new TypeError('You must set the cb function'); | ||
} | ||
@@ -17,7 +17,9 @@ this.opts = opts; | ||
compilation.chunks.forEach(function (item) { | ||
hashMap[item.name] = { | ||
chunkHash: item.hash, | ||
files: item.files, | ||
// contentHash: item.contentHash | ||
}; | ||
if (!item.name) { | ||
hashMap[item.name] = { | ||
chunkHash: item.hash, | ||
files: item.files, | ||
// contentHash: item.contentHash | ||
}; | ||
} | ||
}); | ||
@@ -24,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
5461
25
86