webpack-md5-hash
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "webpack-md5-hash", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Plugin to replace a standard webpack chunkhash with md5.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,3 +31,4 @@ "use strict"; | ||
compilation.plugin("chunk-hash", function(chunk, chunkHash) { | ||
var source = chunk.modules.sort(compareModules).map(getModuleSource).reduce(concatenateSource, ''); // we provide an initialValue in case there is an empty module source. Ref: http://es5.github.io/#x15.4.4.21 | ||
var modules = chunk.mapModules ? chunk.mapModules(getModuleSource) : chunk.modules.map(getModuleSource); | ||
var source = modules.sort(compareModules).reduce(concatenateSource, ''); // we provide an initialValue in case there is an empty module source. Ref: http://es5.github.io/#x15.4.4.21 | ||
var chunk_hash = md5(source); | ||
@@ -34,0 +35,0 @@ chunkHash.digest = function () { |
@@ -40,3 +40,3 @@ # webpack-md5-hash | ||
* Install [Doker Toolbox](https://www.docker.com/docker-toolbox) | ||
* Install [Docker Toolbox](https://www.docker.com/docker-toolbox) | ||
* Setup [Docker Machine](https://docs.docker.com/machine/get-started/) | ||
@@ -43,0 +43,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
2
13720
15
123