Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tony-kerz opened this issue Sep 15, 2014 · 1 comment

Comments

@tony-kerz
Copy link

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.

@UltCombo
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants