Custom filename
Function Option (for use case of appending hash)
#15
Labels
enhancement
New feature or request
Milestone
Hi @akabekobeko ! 👋
In order to achieve good long-term caching of files, it is good if the filenames change if the contents change.
To do this, very often an md5 digest is generated of the file and then included in the filename (see how
gatsby-remark-copy-linked-files
does it)Would you be open to accepting a new option called
filename
that would have access to this hash, in case a user would like to prepend the hash:May be able to use the existing
linkNode.internal.contentDigest
property from Gatsby (asgatsby-remark-copy-linked-files
also does).One more question: how do you feel about changing the default to append this hash on the end?
The text was updated successfully, but these errors were encountered: