WebGrease is an assembly found in mvc4, but can it be used like Yahoo.Yui.Compressor? I want to use webgrease.dll in a C# console programe and compress a javascript string to another.
class Program
{
static void Main(string[] args)
{
Yahoo.Yui.Compressor.JavaScriptCompressor c = new Yahoo.Yui.Compressor.JavaScriptCompressor();
string s = "function hello (name) { return 'hello '+ name + '!'; }";
s = c.Compress(s);
Console.WriteLine(s);
}
}