This library allows you to minify ExtJS and Sencha Touch files using ASP.NET MVC engine on-the-fly.
####Global.asax
protected void Application_Start()
{
// ...
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
####BundleConfig.cs
using SenchaMinify;
// ...
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(
new SenchaBundle("~/bundles/my-sencha-app")
.IncludeDirectory("~/Scripts/my-sencha-app", "*.js", true)
);
}
}
####Index.cshtml
<script src="@Url.Content("~/bundles/my-sencha-app")" type="text/javascript"></script>
NuGet:
Install-Package SenchaMinify