Bundler: ScriptsBundler and StylesBundler, Bundles all the scripts and style sheets on specified directories.

This commit is contained in:
2015-05-24 15:57:07 +02:00
parent b35379b8fe
commit 1dd4841901
6 changed files with 109 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Scrummer.Code
{
public class ScriptsBundler : IHttpHandler
{
public bool IsReusable
{
get { return false; }
}
public void ProcessRequest(HttpContext context)
{
Bundler bundler = new Bundler(context.Server.MapPath("~/Scripts/"));
context.Response.ContentType = "text/javascript";
bundler.WriteResponse(context.Response.OutputStream);
}
}
}