Convert base scripts and styles to embedded resources and move to VAR.WebForms.Common.

This commit is contained in:
2020-03-02 09:09:29 +01:00
parent d1e8907d5c
commit 4deae439af
10 changed files with 69 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
using System.Web;
using System.Reflection;
using System.Web;
namespace VAR.WebForms.Common.Code
{
@@ -10,7 +11,10 @@ namespace VAR.WebForms.Common.Code
public void ProcessRequest(HttpContext context)
{
Bundler bundler = new Bundler(context.Server.MapPath("~/Styles/"));
Bundler bundler = new Bundler(
assembly: Assembly.GetExecutingAssembly(),
assemblyNamespace: "Styles",
absolutePath: context.Server.MapPath("~/Styles/"));
context.Response.PrepareCacheableResponse();
bundler.WriteResponse(context.Response, "text/css");
}