Getting long-term caching right with Webpack is a problem that never really got a final answer.
There is, however, this open issue on Github: