-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Host environment path #590
Comments
Though this led me to also wonder why it couldn't use |
Disregard the last bit about |
I haven't used tag helpers in a while so not sure when this might have broken. Interested in submitting a small PR to fix this? |
It's literally just the one word, here. The In my case, I'm using Nuget package Microsoft.Web.LibraryManager.Build to copy them locally as part of the build. Maybe others are doing it differently if they are doing SPAs or the like, I'm not sure. {
//my corresponding entry in ./libman.json
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "[email protected]",
"files": [
"jquery.min.js",
"jquery.js",
"jquery.slim.min.js",
"jquery.slim.js"
],
"destination": "wwwroot/vendor/jquery"
}
]
} |
Describe the bug
Just found this and was trying out the resource integrity helper in a local dev environment, but was getting an error about the local file not being found.
I did some digging into the source but wasn't sure if this was a bug or if I'm using it wrong. Assuming the intent is to fallback to the local version of a resource if its hash doesn't match that of the CDN, shouldn't the logic in the
GetSubresourceIntegrityFromContentFile()
be combining the relative path withWebRootPath
, notContentRootPath
?Steps to reproduce
I was trying this with jQuery as a test and was using the below tag
Expected behaviour
Was expecting it to output the script tag with a SRI hash
The text was updated successfully, but these errors were encountered: