-
Notifications
You must be signed in to change notification settings - Fork 115
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
Is there a way to get the hash from a path? #87
Comments
@johnnyoshika could you find a solution for this? I'm stuck with the same issue right now. Thx... |
Developed an extension for this, if anybody needs.
You should add your extension namespace to _ViewImports.cshtml. Then method can be used on any page. _ViewImports.cshtml your.cshtml
@madskristensen maybe this can be documented? |
@serkanyazicioglu Thanks for posting this! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a path to a static asset (e.g.
/js/foo.js
), is there a way to get the hash (i.e. version / cache buster) of that file? The reason why I ask is that I have a special tag helper that lazy-loads scripts and I'd like to append the hash to the file path without using the WebOptimizer tag helper.Great library, BTW!
The text was updated successfully, but these errors were encountered: