webpack-md5-hash
Advanced tools
Comparing version 0.0.1 to 0.0.3
{ | ||
"name": "webpack-md5-hash", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"description": "Plugin to replace a standard webpack chunkhash with md5.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,10 +26,5 @@ var md5 = require("md5"); | ||
compiler.plugin("compilation", function(compilation) { | ||
compilation.plugin("after-hash", function() { | ||
for (var chunk_id in this.chunks) { | ||
if (this.chunks.hasOwnProperty(chunk_id)) { | ||
var chunk = this.chunks[chunk_id]; | ||
var source = chunk.modules.sort(compareModules).map(getModuleSource).reduce(concatenateSource); | ||
chunk.renderedHash = md5(source); | ||
} | ||
} | ||
compilation.plugin("chunk-hash", function(chunk, chunkHash) { | ||
var source = chunk.modules.sort(compareModules).map(getModuleSource).reduce(concatenateSource); | ||
chunk.hash = md5(source); | ||
}); | ||
@@ -36,0 +31,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28188
20
46