mirror of https://github.com/webpack/webpack.git
Merge pull request #3874 from timse/salt-chunk-hash-instead-of-main-hash-in-loop
Salt chunk hash instead of main hash in loop
This commit is contained in:
commit
330ca07fba
|
@ -985,7 +985,7 @@ class Compilation extends Tapable {
|
||||||
chunk = chunks[i];
|
chunk = chunks[i];
|
||||||
const chunkHash = crypto.createHash(hashFunction);
|
const chunkHash = crypto.createHash(hashFunction);
|
||||||
if(outputOptions.hashSalt)
|
if(outputOptions.hashSalt)
|
||||||
hash.update(outputOptions.hashSalt);
|
chunkHash.update(outputOptions.hashSalt);
|
||||||
chunk.updateHash(chunkHash);
|
chunk.updateHash(chunkHash);
|
||||||
if(chunk.hasRuntime()) {
|
if(chunk.hasRuntime()) {
|
||||||
this.mainTemplate.updateHashForChunk(chunkHash, chunk);
|
this.mainTemplate.updateHashForChunk(chunkHash, chunk);
|
||||||
|
|
Loading…
Reference in New Issue