Quantcast
Channel: Kentico CMS for ASP.NET - DevNet - Forums - Version 7.x - API
Viewing all articles
Browse latest Browse all 660

JS Minification On Azure

$
0
0
bryanallott
GetResource.ashx handler has this method

private static void ProcessJSFileRequest(HttpContext context)
{
// Check whether to use minification
bool useMinification = false;
if (CMSAppBase.ConnectionAvailable)
{
useMinification = ScriptHelper.ScriptMinificationEnabled;
}

ProcessFileRequest(context, JS_FILE_ARGUMENT, JS_FILE_EXTENSION, useMinification);
}

What I've noticed on Azure though is that the JS files are not being minified and looking at the line

ScriptHelper.ScriptMinificationEnabled

always returns false if the application is running on Azure, even if the all the minification settings are set to true.

I could just override this and always minify, but wondering why the minification is false for Azure?

Viewing all articles
Browse latest Browse all 660

Latest Images

Trending Articles



Latest Images