Hello guys i'm using Squishit and it came to my mind if there's a way to remove comments from generated files by AsNamed method?
I'm using a class to manage and create my bundles and these bundles are always reregistered when my application start then on my views i call those bundle key who create the tag for my generated file...
Example:
//File GLOBAL.ASASX
public class MvcApplication : HttpApplication{
public void RegisterBundles(){
BundleSquishltHelper.IsToForceRelease(_default_isto_force_release);
Bundle.Css().ClearCache();
Bundle.JavaScript().ClearCache();
//when only mycontroller it means my default action it's index, so the css represented below is for mycontroller.index.css or just mycontroller.css
BundleSquishltHelper.NewCssBundle("cssmycontrollermyaction", new List<BundleSquishltHelper.Squishit>()
{
new BundleSquishltHelper.Squishit("~/assets/css/mycontroller.css"),
});
}
}
public class BundleSquishltHelper{
//properties...
//methods...
public static void NewBundle(string key, BundleType type, List<Squishit> files){
//things go here
myinstance.AsNamed(key, renderToFile);
}
}