Don't want to minify blog.js...

Topics: Business Logic Layer
Apr 25, 2011 at 3:46 AM

... 'cause I'm debuggin' it step by step..., so look what I've done 'till now:

  • I commented the compress modules lines in web.config
  • I set minify bool to false every time ResolveScriptUrl is called

but still does't work and the js is still loaded minified!... Why..??...

Apr 26, 2011 at 9:19 AM

I think the change needed is in Utils.cs in the BE core.  So a recompile of the core is needed if you make the change.

The change is in AddFolderJavaScripts() in Utils.cs.  In there is:

List<ExternalContentItem> knownItems = new List<ExternalContentItem>()
	new ExternalContentItem() { ItemName = "jquery.js", Priority = 0, Defer = false, Minify=false },
	new ExternalContentItem() { ItemName = "blog.js", Priority = 1, Defer = false,
		IsFrontEndOnly = true, AddAtBottom = true, Minify = false },

You would want to change Minify from true to false, as shown in the highlighted text above.  I didn't test it, but I believe that's what's needed.

Apr 26, 2011 at 12:55 PM
Edited Apr 26, 2011 at 1:48 PM

Thank You!:)...

Apr 26, 2011 at 1:48 PM
Edited Aug 1, 2011 at 12:10 AM

Oh, I needed to clean cache browser too!...:)..