Currently, developers cannot easily work together. While debugging and compilation are disabled, as well as cache bit. This leads to the fact that every developer is concerned with javascript, which must open every javascript file and force it to be updated to make sure that they have no changes.
I found a couple of links that I thought might work, but none of the implementations have been developed.
First, apply a transeform to individual Bundles through an IBundleTransform .
Public Class DebugCacheBuster Implements IBundleTransform Public Sub Process(context As BundleContext, response As BundleResponse) Implements IBundleTransform.Process If BundleTable.EnableOptimizations Then Exit Sub End If For Each file As BundleFile In response.Files file.IncludedVirtualPath &= GetPathHash(HostingEnvironment.MapPath(file.IncludedVirtualPath)) Next End Sub End Class
It looked promising, but I couldn't get it to work. I tried to add a new instance of this class to the constructor of each package, and I also tried to iterate over all the packages after they were created. My points are broken, and IncludedVirtualPath seems to be updated. After continuing the rendering, the paths are not updated.
I also tried creating a custom VirtualPathProvider and a custom VirtualFile and overriding VirtualPath to return the correct value, but again, when it was shown, the path was bare.
Did I do something wrong with the conversion? Is there any other way to implement this?
Marie source share