asfktz / autodll-webpack-plugin

Webpack's DllPlugin without the boilerplate
MIT License
1.46k stars 80 forks source link

Only updating package produces wrong broken dll-links when using chunkhashes #127

Open villesau opened 5 years ago

villesau commented 5 years ago

We have following setup:

Hashes before package update: app: app_build-c208c7c1f4a5f3a05681.js vendor: vendor_1ee645ef083ddb7ee345.js dll-reference: vendor_1ee645ef083ddb7ee345

Hashes after package update:

app: app_build-c208c7c1f4a5f3a05681.js vendor: vendor_baeb27ebad7c77547fea.js dll-reference: vendor_baeb27ebad7c77547fea

As seen, dll-reference updates, but app_build hash does not update. This causes dll-reference to be outdated in the app build chunk. Either dll-reference should not change, or also app build should update in order to keep everything consistent.