gulp-buster icon indicating copy to clipboard operation
gulp-buster copied to clipboard

question: recommended strategy for merging hash directly into file name?

Open tony-kerz opened this issue 10 years ago • 1 comments

hi,

the php example shown involves some work at the server side to construct the file name using the json hash file.

i'm working with a single-page-app setup which would be doing this file name generation at 'build' time, so i need to construct the file names with the hash values built in at that point.

any suggestions for accomplishing this? would it make sense (or even be possible) to build an option directly into gulp-buster? or would i need to add in some custom code in my gulp file to merge the file names and the generated hash file? or am i just missing something obvious?

regards, tony.

tony-kerz avatar Sep 15 '14 12:09 tony-kerz

So far, I've always done the cache-busting at runtime, and that's the only use case which gulp-buster covers at the moment.

I believe you can use gulp-rev + gulp-rev-replace, or maybe gulp-rev-append, to achieve what you seek.

This seems like an on-demand feature, I can probably come up with a gulp-buster-replace plugin in the future.

UltCombo avatar Sep 15 '14 13:09 UltCombo