Open HarryBurns opened 8 years ago
The gulp-hash plugin could help.
@HarryBurns According to the API docs:
When this section is set to true (ie. versioning: true), versioning is generated.
So just add versioning: true
and it should be generated for you. If it doesn't work, then ask @phbernard haha. Piping to gulp-hash
is also an option post-API-call but might be a hassle.
@haydenbleasel According to API docs:
When this section is set to true (ie. versioning: true), versioning is generated. The query parameter name is v and the value is a hashed timestamp.
I was talking about hash of file contents, not hashed timestamp :)
But, I think it would be better to move this issue to favicons. Cause RFG web-service is more about manual generation, whilst favicons is about CI and automation of build process.
@HarryBurns That is true. Typically I'd say use gulp-favicons
and pipe it to gulp-hash
but I don't think you can easily affect the metadata in this way, so it may have to be integrated. Let's move this to a new issue on Favicons.
Oh wow, I didn't see that one, sorry :(
This is already possible. Auto-everything:
//...
versioning: true
//...
Parameter name is TheVersion
and auto-timestamp:
//...
versioning: {
paramName: "TheVersion"
}
//...
@phbernard Yeah but he wants to hash by file contents rather than timestamp. Possible Feature Request for RFG.
Oh, right, thank of for pointing this out.
Hello again!
RealFaviconGenerator provides
versioning
future. It makes links in HTML looks like:In config:
It would be great to have
versioning: "auto"
option, that will calculate?ver=...
automatically from file's hash.This feature will be very handy :)