Is there a way to remove the hash from combined javascript files in SquishIt?
-
29-10-2019 - |
문제
I'm using SquishIt to combine and minify my javascript files in an MVC 3 project. I'm trying to create an offline cache.manifest and the hash codes changing between edits is killing me. Is there a way to remove the hash that is appended to the bundle?
I checked in the BundleBase.cs class and see a HashKeyNamed
method but can't figure out where I would use it.
Here is my existing method for combining:
@Html.Raw(SquishIt.Framework.Bundle.JavaScript()
.Add("~/js/libs/persistence.js")
.Add("~/js/offline.common.js")
.Add("~/js/offline.syncmanager.js")
// snip...
.ForceRelease()
.WithMinifier(SquishIt.Framework.JavaScript.Minifiers.JavaScriptMinifiers.NullMinifier)
.Render("~/js/offline_script.js"))
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow