nikhilk/scriptsharp — pull request #380 by lduchosal (2013-06-13 14:48:03+00:00)
Title: cc Ajaxmin Obfuscator

Dear Nikhil,

I've added an AjaxMin obfuscation engine to ScriptSharp.
It uses metadata (symbols) gathered during ScriptSharp compilation to create AjaxMin rename/norename file.

Obfuscation process has 3 modes: None, X, Full defined in the .csproj (see ScriptSharpWeb.targets)
X : will prefix obfuscated names with a X. It greatly helps debugging JavaScript while validating obfuscation.
Full : will make your JavaScript human unreadable.

You can prevent obfuscation on class/properties/methods with the ScriptImport and ScriptAlias attributes. This is helpful if you use Enum names in your code and don’t want them to be renamed in obfuscated JavaScript.

Changes to ScriptSharp generator are insignificant. I hope this pull request will make its way into the main repository.

Regards