Inspired by this answer.. Can you guys point me to something similar--something that can be integrated into a build-script or perhaps directly into Visual Studio?
views:
85answers:
2
+5
A:
Visual Studio projects use MSBuild, so you can integrate an MSBuild task that uses whatever javascript minifier you'd like.
This has been blogged about pretty extensively so I won't bother trying to come up with the specifics here... but a quick google search yielded some good posts.
http://www.coderjournal.com/2008/05/how-to-create-a-yui-compressor-msbuild-task/
womp
2009-09-09 20:56:36
Yep I've used Nick Berardi's (the CoderJournal link) in the past to include YUI Minifier in the project build scripts.
Zhaph - Ben Duguid
2009-09-09 23:11:21
Thanks a bunch womp :)
roosteronacid
2009-09-10 07:29:22
+2
A:
The first link from womps post (Nick Berardi's blog post) uses the YUI Compressor for java. So if you don't want to have the extra dependency of java / installing java, then you can do the same thing with a .NET port of the most excellent YUI Compressor project -> YUICompressor for .NET.
Maybe that might help :)
*Disclaimer: I did most of that port.
Pure.Krome
2009-09-17 07:22:20