soundcloud / chunk-manifest-webpack-plugin

Allows exporting a manifest that maps entry chunk names to their output files, instead of keeping the mapping inside the webpack bootstrap.
MIT License
395 stars 73 forks source link

override chunk hash for entry chunk (mainTemplate) #9

Closed bholloway closed 8 years ago

bholloway commented 8 years ago

The mainTemplate chunk hash includes the hashes of other chunks on the presumption that it contains the chunk manifest.

A monkey-patch of MainTemplate.updateHashForChunk() such that it does not call the "hash-for-chunk" extensibility point.

Proposed as solution for issue #7.

bholloway commented 8 years ago

@Duan112358 Can you expand on the problem you posed in the webpack issue if it is relevant here.

Ideally with an open source example we can look at.

bholloway commented 8 years ago

Removing this PR based on the response to the question I posed.

Essentially if you use webpack-md5-hash plugin the problem goes away.