This isn’t a new thing, but I just came across a C# console app class, ported from JSMin to help with ‘minifying’ (or uglifying) your Javascript. You can find it here.
Just create a new C# console app, pass in the ‘input file’ and ‘output file’ and away you go…