Elhebert / laravel-sri

Subresource Integrity hash generator for laravel
MIT License
40 stars 16 forks source link

Fixed get integrity when using mix version() #52

Closed Glennmen closed 4 years ago

Glennmen commented 4 years ago

It seems that PR #30 accidentally passed $html to get the integrity value but this causes if you are using mix version() and mix-sri.json that the property will not be found and it will always recalculate the SRI value on each load.

This PR should fix this issue.