I'm trying to implement long-term caching of my js project. I've been using the survivejs (http://survivejs.com/webpack_react/developing_with_webpack/) page as a tutorial.
What I've found is that both .css and .js use the same hash:
app.860846ea86c7b67eddd0.js 132 kB 0 [emitted] app
styles.860846ea86c7b67eddd0.css 21 bytes 0 [emitted] app
and when I JUST change .css file, both files are updated (I would expect the .js file to stay the same?).
app.353477b32cc15ea06465.js 132 kB 0 [emitted] app
styles.353477b32cc15ea06465.css 20 bytes 0 [emitted] app
I've verified that the file that wasn't supposed to change has the same md5 sum.
Ultimately what I want is that if I change styling, the generated css hash would change and the js hash would remain the same (and vice-versa). i.e. the js contents hasn't changed, it's cached in the browser, so why force a re-download.
I've created a sample github repo to demonstrate. (The readme has a few more details).
https://github.com/vlod/webpack_chunk_strange/tree/master
I would appreciate some help. I'm fairly new to webpack and it's most likely a config error, but I've spent 2 days trying everything I can.
Thanks.