mrsum / webpack-svgstore-plugin

Simple svg-sprite creating with webpack
https://www.npmjs.com/package/webpack-svgstore-plugin
200 stars 92 forks source link

Long-term caching support #98

Closed matpaul closed 5 years ago

matpaul commented 8 years ago

Hello! Currently [hash] generated with buildTimestamp so every build time - hash change.

Could you suggest me how to implement long-term caching, i mean change hash if content change.

Thanks!

mrsum commented 8 years ago

Hi @matpaul thnx for issue. I'll think abt it.

mrsum commented 8 years ago

Yay @matpaul ! Your request has been completed.

Actual code here https://github.com/mrsum/webpack-svgstore-plugin/blob/develop/src/helpers/utils.js#L272

Try webpack-svgstore-plugin@3.0.1 If everything is okay. Plz close current issue.

matpaul commented 8 years ago

@mrsum thx a lot!

fresk-nc commented 7 years ago

any news?

mrsum commented 7 years ago

@fresk-nc Noup. Was so bussy. Will implemented in 3.0.5 Sorry for...

mshustov commented 7 years ago

Guys, what is current status? as I can see last version in npm is 3.0.6, but timestamp is still used as hash.

asafyish commented 7 years ago

Time based has is no good, every build will have a different hash, even with the same content.