Get a short, unique key for a given file path based on the content of the file or its path.
Key is compatible with CSS classes and URLs. The file's basename is included in the key to make debugging easier (both in dev and production).
var getKey =// => "C4L8HPDXPJ-page"
path of the file to get a unique key for.
root: resolve relative paths based on this directory
true, don't read the content of the file, instead just hash the full resolved path.
cache: Defaults to
falseto ignore previously cached file hashes, or pass in an object to use as a custom cache.