Dragory / gulp-hash

A gulp plugin for cachebusting files by adding a hash to their name and/or content.
MIT License
69 stars 24 forks source link

Option version #6

Closed ai closed 9 years ago

ai commented 9 years ago

We need some version options to use it in md5(content + version), like it Rails does.

It is useful, for example, when you fix webserver headers and you need to reload all assets.

ai commented 9 years ago

Fixed in https://github.com/Dragory/gulp-hash/pull/7

@Dragory hope for sooon feedback, because we really need this fix soon :).

Dragory commented 9 years ago

Hey, thanks for the PR! I haven't personally used such an option but it does fit the scope of the project and I can see it being useful, so I'm merging it in. The only thing I'm changing is the default value, which I'm setting to an empty string to preserve previous output when the option is not set.

Thanks!

ai commented 9 years ago

Awesome. I am wating for release.