preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

Use [chunkhash] instead of [hash]? #306

Open mii9000 opened 7 years ago

mii9000 commented 7 years ago

https://github.com/preboot/angular2-webpack/blob/master/webpack.config.js#L63-L64 For long term caching of vendor and polyfill? https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/153#issuecomment-225017219

Foxandxss commented 7 years ago

I know there was a reason for not doing that but I forgot.

IIRC it was related with webpack not correctly hashing and changing only say css would change the hash of everything else. I need to recheck.

techhysahil commented 6 years ago

Check out this: https://medium.com/@sahilkkrazy/hash-vs-chunkhash-vs-contenthash-e94d38a32208