How can I deal with webpack hashes in MVC 4
I have an MVC 4 app that has VueJS running on several pages.
I am adding a hash to the bundled js file to prevent caching. I am wondering how can I get a reference to the current filename in the Razor views?
I noticed ASP.Net core has helpers that allow wildcards in the filename. http://michaco.net/blog/Angular4GettingHashedWebpackBundlesWorkingInASPNETCoreMVC
Is there anything like that in older MVC frameworks like 4 or what strategies do people usually use for this?
0 comments:
Post a Comment